-
Notifications
You must be signed in to change notification settings - Fork 65
apollo_consensus: use Vote in Prevote/Precommit SMEvent #10335
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
apollo_consensus: use Vote in Prevote/Precommit SMEvent #10335
Conversation
87b8c38 to
9eb4696
Compare
482fe36 to
13c7dc1
Compare
matanl-starkware
left a comment
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.
@matanl-starkware reviewed 3 of 4 files at r1.
Reviewable status: 1 of 4 files reviewed, 2 unresolved discussions (waiting on @dafnamatsry)
crates/apollo_consensus/src/single_height_consensus.rs line 136 at r1 (raw file):
/// tasks). SHC does have side effects, such as sending messages to the network via the context. pub(crate) struct SingleHeightConsensus { height: BlockNumber,
Can you split this into a PR "removing height from SHC"?
Code quote:
height: BlockNumber,crates/apollo_consensus/src/single_height_consensus.rs line 415 at r1 (raw file):
} StateMachineEvent::Precommit(vote) => { ret_val.extend(self.handle_state_machine_vote(context, vote).await?);
Same behaviour as Prevote.
Consider using an unite arm
Code quote:
ret_val.extend
asmaastarkware
left a comment
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: 1 of 4 files reviewed, 2 unresolved discussions (waiting on @dafnamatsry and @matanl-starkware)
crates/apollo_consensus/src/single_height_consensus.rs line 136 at r1 (raw file):
Previously, matanl-starkware (Matan Lior) wrote…
Can you split this into a PR "removing height from SHC"?
Done
crates/apollo_consensus/src/single_height_consensus.rs line 415 at r1 (raw file):
Previously, matanl-starkware (Matan Lior) wrote…
Same behaviour as Prevote.
Consider using an unite arm
will be deleted in the upcoming PRs
13c7dc1 to
ac3b58a
Compare
9eb4696 to
5f08fb8
Compare
matanl-starkware
left a comment
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 4 files reviewed, 3 unresolved discussions (waiting on @dafnamatsry)
crates/apollo_consensus/src/single_height_consensus.rs line 256 at r3 (raw file):
context.broadcast(last_vote.clone()).await?; Ok(ShcReturn::Tasks(vec
No description provided.