Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(code/app/starknet): Adapt Starknet app to latest P2P protos #819

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

romac
Copy link
Member

@romac romac commented Jan 30, 2025

Closes: #XXX


PR author checklist

For all contributors

For external contributors

@romac romac added the work in progress Work in progress label Jan 30, 2025
@romac romac added the code Code/implementation related label Jan 30, 2025
@romac romac removed the work in progress Work in progress label Feb 5, 2025
Copy link

codecov bot commented Feb 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.87%. Comparing base (614a46c) to head (da0334b).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #819      +/-   ##
==========================================
+ Coverage   75.79%   75.87%   +0.08%     
==========================================
  Files         169      172       +3     
  Lines       14682    14785     +103     
==========================================
+ Hits        11128    11218      +90     
- Misses       3554     3567      +13     
Flag Coverage Δ
integration 75.59% <ø> (+0.08%) ⬆️
mbt 14.66% <ø> (-5.97%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
core ∅ <ø> (∅)
engine ∅ <ø> (∅)
app ∅ <ø> (∅)
starknet ∅ <ø> (∅)

@romac romac force-pushed the romac/starknet-p2p-protos branch 2 times, most recently from e57a003 to 733fa0c Compare February 5, 2025 16:25
@romac romac force-pushed the romac/starknet-p2p-protos branch from 733fa0c to c1966eb Compare February 5, 2025 16:32
@romac
Copy link
Member Author

romac commented Feb 5, 2025

@ancazamfir Note that I had to disable all tests pertaining to proposal-only and proposal-and-parts consensus modes since the Starknet protos do not include a Proposal message anymore (I mean they never did, we defined our own but I removed it for clarity). Eventually we will be able to run those again with the test app from #747.

@romac romac marked this pull request as ready for review February 5, 2025 16:36
@romac
Copy link
Member Author

romac commented Feb 5, 2025

I also commented out vote extensions support for the Starknet app since those are not supported nor currently wanted by Starknet.

signature: Some(p.signature.to_proto()?),
},
SignedConsensusMsg::Vote(v) => v.to_proto()?,
SignedConsensusMsg::Proposal(_) => unreachable!(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

App panics here if configured with proposal-and-parts.

Copy link
Collaborator

@ancazamfir ancazamfir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! 🚀

@ancazamfir
Copy link
Collaborator

@ancazamfir Note that I had to disable all tests pertaining to proposal-only and proposal-and-parts consensus modes since the Starknet protos do not include a Proposal message anymore (I mean they never did, we defined our own but I removed it for clarity). Eventually we will be able to run those again with the test app from #747.

I think we should remove the value_payload from the consensus config and instead pass this down from the app. The app itself may hardcode this or, if we want to test multiple options from a test app, we make it part of the app config, controlled by tests.

@romac
Copy link
Member Author

romac commented Feb 6, 2025

I think we should remove the value_payload from the consensus config and instead pass this down from the app. The app itself may hardcode this or, if we want to test multiple options from a test app, we make it part of the app config, controlled by tests.

Agreed! Let's do in a follow-up PR?

EDIT: Tracked here: #835

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Code/implementation related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants