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

Stakes and votes management: add leader schedule calculus #230

Closed
wants to merge 2 commits into from

Conversation

musitdev
Copy link
Contributor

This PR add the leader calculus to the #229 one.
The leader calculus is done at the end of the epoch on the stake and vote account stored and updated during the epoch.
It is done in a separate task, so I use that specific container call TakableMap that allow to take the content but allow caching update that arrive during the calculus and apply then when the content return (merge).
This process: Take, calculate in a task, merge is done using a simple state machine using LeaderScheduleEvent.

@musitdev musitdev changed the base branch from main to stakes_and_votes October 18, 2023 07:39
@musitdev
Copy link
Contributor Author

musitdev commented Oct 18, 2023

All unused are correct in the next pull request #232

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.

None yet

2 participants