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

staking: validator state transition fix #3651

Merged
merged 1 commit into from
Jan 23, 2024
Merged

Conversation

erwanor
Copy link
Member

@erwanor erwanor commented Jan 23, 2024

This PR fixes an issue with a missing transition (Active -> Defined) and adds context for each transition case. With that said, writing this code makes me think that we might be better off by limiting the amount of possible transitions, removing Active -> Defined and Jailed -> Defined transition, and use end-epoch processing to "sweep" inactive validators into the precursor Defined state.

Since I am in the middle of an assurance blitz for #3640, I will abstain from making more changes. But this is currently top-of-mind for me. Moreover, manual testing seems to surface issues with Unbonded/Unbonding (observed on v0.64.0 as well) so I plan to look into that as well.

@erwanor
Copy link
Member Author

erwanor commented Jan 23, 2024

Merging optimistically, because I need this to do more assurance of #3640.

@erwanor erwanor merged commit 9a5bb7f into main Jan 23, 2024
7 checks passed
@erwanor erwanor deleted the erwan/validator_transition branch January 23, 2024 18:28
@erwanor erwanor self-assigned this Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Status: Testnet 65: Deimos
Development

Successfully merging this pull request may close these issues.

1 participant