-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
Clean up ConsensusHandler #14126
Clean up ConsensusHandler #14126
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
7a14652
to
ed1eedf
Compare
ed1eedf
to
5d816d7
Compare
5d816d7
to
9b4175e
Compare
|
||
pub struct PostConsensusTxReorder {} | ||
|
||
impl PostConsensusTxReorder { |
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.
TBH I'm not sure if it is worth it to pull this into a separate file. But either is fine.
lock_and_final_round, | ||
|
||
// The last block in this function notifies about new checkpoint if needed | ||
let final_checkpoint_round = lock_and_final_round.map(|(_, r)| r); |
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.
What is the difference between this and the previous way of getting final_checkpoint_round
?
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.
lock_and_final_round contains a lock besides the round
9b4175e
to
0a60588
Compare
0a60588
to
04e5624
Compare
04e5624
to
7ff723e
Compare
Description
This PR does a few cleanups for ConsensusHandler:
Test Plan
CI
If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.
Type of Change (Check all that apply)
Release notes