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 #4597

Draft
wants to merge 2 commits 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 for the epoch immediately following the epoch in which the feature gate was activated in.

A new constructor was added to the existing LeaderSchedule struct which has a vote delegation map as a parameter rather than a list of node ids and their accumulated stakes. This PR implements the new leader schedule algorithm but does not add new data structures or APIs for looking up what the vote account is for a particular slot. These changes can come later in non-consensus impacting refactorings.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant