Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jstarry
Copy link

@jstarry jstarry commented Jan 23, 2025

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 the LeaderScheduleVariant trait.

Fixes #
Feature Gate Issue: #4573

@jstarry jstarry force-pushed the feat/leader-schedule-migration branch from d32331b to 9f16cee Compare January 28, 2025 13:06
@joncinque
Copy link

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

@jstarry jstarry force-pushed the feat/leader-schedule-migration branch 9 times, most recently from bbd8566 to 4b7393e Compare February 6, 2025 10:39
@jstarry jstarry marked this pull request as ready for review February 6, 2025 10:41
AshwinSekar
AshwinSekar previously approved these changes Feb 11, 2025
Copy link

@AshwinSekar AshwinSekar left a 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

@jstarry
Copy link
Author

jstarry commented Feb 12, 2025

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

@t-nelson
Copy link

can we ref the simd in the title?

@jstarry jstarry changed the title feat: new leader schedule by vote delegation feat: new leader schedule by vote delegation (SIMD-0180) Feb 13, 2025
@jstarry jstarry force-pushed the feat/leader-schedule-migration branch from 4b7393e to 4956850 Compare February 13, 2025 18:07
@jstarry jstarry force-pushed the feat/leader-schedule-migration branch from bd48e40 to 4e99ae7 Compare February 27, 2025 18:33
@jstarry jstarry added the feature-gate Pull Request adds or modifies a runtime feature gate label Feb 28, 2025
@jstarry jstarry force-pushed the feat/leader-schedule-migration branch 4 times, most recently from f64e109 to 5264fce Compare March 5, 2025 01:05
@jstarry jstarry force-pushed the feat/leader-schedule-migration branch from 5264fce to e0f8f06 Compare March 5, 2025 01:19
@jstarry
Copy link
Author

jstarry commented Mar 5, 2025

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-gate Pull Request adds or modifies a runtime feature gate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants