-
Notifications
You must be signed in to change notification settings - Fork 38
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(consensus): send BlockInfo from proposer #3908
feat(consensus): send BlockInfo from proposer #3908
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
8b81636
to
b9f0b1e
Compare
4792985
to
d5289ea
Compare
3909f1d
to
3eedbda
Compare
d5289ea
to
b8738c4
Compare
3eedbda
to
5762acc
Compare
5762acc
to
62967aa
Compare
b8738c4
to
309289d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @asmaastarkware)
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 403 at r1 (raw file):
self.cende_ambassador .prepare_blob_for_next_height(BlobParameters { // TODO(dvir): use the real `BlockInfo` when consensus will save it.
Maybe we can remove this TODO?
309289d
to
87cbbc9
Compare
62967aa
to
e76616d
Compare
e76616d
to
7b45f1b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 8 files reviewed, 1 unresolved discussion (waiting on @guy-starkware and @matan-starkware)
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 403 at r1 (raw file):
Previously, guy-starkware wrote…
Maybe we can remove this TODO?
@matan-starkware WDYT about storing last_block_info when building/validating the block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 8 of 8 files at r2, all commit messages.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @asmaastarkware and @guy-starkware)
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 403 at r1 (raw file):
Previously, asmaastarkware (asmaa-starkware) wrote…
@matan-starkware WDYT about storing last_block_info when building/validating the block?
Good catch, do this in another PR
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 596 at r2 (raw file):
timestamp: now.timestamp().try_into().expect("Failed to convert timestamp"), builder: proposal_init.proposer, l1_da_mode: L1DataAvailabilityMode::Blob,
Confirming you plan to make this part of the config
Code quote:
l1_da_mode: L1DataAvailabilityMode::Blob,
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 610 at r2 (raw file):
hash: BlockHash::default(), }), // TODO(Dan, Matan): Fill block info.
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 847 at r2 (raw file):
Some(ProposalPart::BlockInfo(_)) => { // TODO(Asmaa): Validate the block info. HandledProposalPart::Continue
We should make sure to receive this before we enter this loop. Inside of handle part this is like receiving Init (invalid proposal)
Code quote:
// TODO(Asmaa): Validate the block info.
HandledProposalPart::Continue
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 874 at r2 (raw file):
} // TODO(Asmaa): Handle invalid proposal part by aborting the proposal, not the node. _ => panic!("Invalid proposal part: {:?}", proposal_part),
Suggestion:
HandledProposalPart::Failed
7b45f1b
to
e6c0105
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @guy-starkware and @matan-starkware)
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 403 at r1 (raw file):
Previously, matan-starkware wrote…
Good catch, do this in another PR
👍
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 596 at r2 (raw file):
Previously, matan-starkware wrote…
Confirming you plan to make this part of the config
next PR
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 847 at r2 (raw file):
Previously, matan-starkware wrote…
We should make sure to receive this before we enter this loop. Inside of handle part this is like receiving Init (invalid proposal)
yes, handled correctly next PR
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 610 at r2 (raw file):
hash: BlockHash::default(), }), // TODO(Dan, Matan): Fill block info.
Done.
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 874 at r2 (raw file):
} // TODO(Asmaa): Handle invalid proposal part by aborting the proposal, not the node. _ => panic!("Invalid proposal part: {:?}", proposal_part),
Done.
Artifacts upload workflows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 8 of 8 files at r3, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @asmaastarkware and @guy-starkware)
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 610 at r2 (raw file):
Previously, asmaastarkware (asmaa-starkware) wrote…
Done.
I don't see any change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @guy-starkware and @matan-starkware)
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 610 at r2 (raw file):
Previously, matan-starkware wrote…
I don't see any change
Done.
e6c0105
to
335dd41
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r4, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @guy-starkware)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @asmaastarkware)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @asmaastarkware)
Ayelet is working on removing NonzerGasPrice, a lot of things gonna change..
so these changes are temporary.