-
Notifications
You must be signed in to change notification settings - Fork 35
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
chore(starknet_consensus_orchestrator): add function to await the second proposal part message #4043
Conversation
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 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @matan-starkware)
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 773 at r1 (raw file):
let mut content = Vec::new(); let deadline = tokio::time::Instant::now() + timeout; // Validating first proposal part, it should be fin in case this is an empty proposal,
assuming first part is the init
Suggestion:
// Validating the second proposal part, it should be fin in case this is an empty proposal,
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 886 at r1 (raw file):
} x => { warn!("Invalid second proposal part: {x:?}");
I agree to warn on invalid proposal parts instead of panicking 👍
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, 1 unresolved discussion (waiting on @asmaastarkware)
crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs
line 773 at r1 (raw file):
Previously, asmaastarkware (asmaa-starkware) wrote…
assuming first part is the init
I just moved the comment to the fn definition
9fb7a0b
to
4315a47
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 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @matan-starkware)
…ond proposal part message
4315a47
to
cf0b8c9
Compare
No description provided.