feat: new leader schedule by vote delegation (SIMD-0180)#4597
feat: new leader schedule by vote delegation (SIMD-0180)#4597jstarry merged 2 commits intoanza-xyz:masterfrom
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
AshwinSekar
left a comment
There was a problem hiding this comment.
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
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. |
AshwinSekar
left a comment
There was a problem hiding this comment.
Logic looks correct, will wait for trent's approval
|
@mergify rebase |
❌ Base branch update has failedDetails
|
f2bb136 to
c7d917b
Compare
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::LeaderSchedulestruct was added which also implements theLeaderScheduleVarianttrait.Fixes #
Feature Gate Issue: #4573