-
Notifications
You must be signed in to change notification settings - Fork 379
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: new leader schedule by vote delegation (SIMD-0180) #4597
base: master
Are you sure you want to change the base?
Conversation
d32331b
to
9f16cee
Compare
This PR contains changes to the solana sdk, which will be moved to a new repo within the next week, when v2.2 is branched from master. Please merge or close this PR as soon as possible, or re-create the sdk changes when the new repository is ready at https://github.com/anza-xyz/solana-sdk |
bbd8566
to
4b7393e
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.
Logic looks correct, I like exposing slot_leaders
so we don't have to perform an additional lookup
Thanks for the review @AshwinSekar, I'll rebase once it's clear where this new feature gate key should be added now that sdk is in a separate repo |
can we ref the simd in the title? |
4b7393e
to
4956850
Compare
bd48e40
to
4e99ae7
Compare
f64e109
to
5264fce
Compare
5264fce
to
e0f8f06
Compare
@t-nelson @AshwinSekar this is ready for another review pass. I've rebased on master to pick up the new leader schedule trait introduced in #4973. |
Problem
SIMD-0180 proposes a new change to the leader schedule algorithm to use vote account delegations rather than total node delegations.
Summary of Changes
Switch over to the new leader schedule algorithm using a feature gate. The new leader schedule algorithm will be applied two epochs after the feature gate activation epoch.
A new
vote_keyed::LeaderSchedule
struct was added which also implements theLeaderScheduleVariant
trait.Fixes #
Feature Gate Issue: #4573