-
Notifications
You must be signed in to change notification settings - Fork 929
More proposer shuffling cleanup #8130
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
More proposer shuffling cleanup #8130
Conversation
dapplion
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.
LGTM
|
Tests updated and ready for re-review. I would like to get this in for v8.0.0-rc.2, as it fixes some bugs and should improve performance. |
jimmygchen
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.
Looks good to me, I couldn't spot any issues, just some minor comments in test.
|
I've opened a follow-up PR here, but I don't think it's necessary for correctness, so leaving it out of v8.0.0(-rc.2): |
jimmygchen
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.
LGTM!
Addressing more review comments from: - sigp#8101 I've also tweaked a few more things that I think are minor bugs. - Instrument `ensure_state_can_determine_proposers_for_epoch` - Fix `block_root` usage in `compute_proposer_duties_from_head`. This was a regression introduced in 8101 😬 . - Update the `state_advance_timer` to prime the next-epoch proposer cache post-Fulu. Co-Authored-By: Michael Sproul <[email protected]>
Issue Addressed
Addressing more review comments from:
I've also tweaked a few more things that I think are minor bugs.
Proposed Changes
ensure_state_can_determine_proposers_for_epochblock_rootusage incompute_proposer_duties_from_head. This was a regression introduced in 8101 😬 .state_advance_timerto prime the next-epoch proposer cache post-Fulu.Additional Info
proposer_duties_from_head_fuluand I have confirmed it fails when reverting the usage ofproposer_shuffling_decision_root_at_epochwith the correct block root.try_proposer_duties_from_cache. Seeproposer_duties_with_gossip_tolerance.