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

stake: fix missing index and simplify state machine #3928

Merged
merged 8 commits into from
Mar 10, 2024

Conversation

erwanor
Copy link
Member

@erwanor erwanor commented Mar 3, 2024

This PR:

  • fix a bug that would cause unjailed validators to not be re-added to the consensus index
  • simplify the validator state machine, and in particular:
    • move the state effect outside of the match implementation
    • unify valid, but no-op, branches (e.g. Disabled <> Defined)
    • improve and elaborate comments

@cratelyn cratelyn added the A-staking Area: Design and implementation of staking and delegation label Mar 4, 2024
@erwanor erwanor requested a review from cratelyn March 5, 2024 21:53
@erwanor erwanor added the consensus-breaking breaking change to execution of on-chain data label Mar 8, 2024
@erwanor erwanor force-pushed the erwan/stake_index_fix branch from bff19de to d3cc132 Compare March 10, 2024 20:45
@erwanor erwanor merged commit dbba4fa into main Mar 10, 2024
6 checks passed
@erwanor erwanor deleted the erwan/stake_index_fix branch March 10, 2024 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-staking Area: Design and implementation of staking and delegation consensus-breaking breaking change to execution of on-chain data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants