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

Refactor Validator Sets #721

Closed
wants to merge 135 commits into from
Closed

Conversation

brentstone
Copy link
Collaborator

@brentstone brentstone commented Nov 1, 2022

As specified in #283, the validator sets should be refactored from active and inactive to consenses, below_capacity, and below_threshold. The active and consensus validator sets are the same (just renaming).

The inactive validator set is further refactored into below_capacity and below_threshold. The "threshold" refers to a level of bonded stake below which we do not iterate over the validators in various PoS actions. The goal is to prevent unbounded iteration over validator sets.

Currently based on #714

@brentstone brentstone marked this pull request as draft November 1, 2022 00:13
@brentstone brentstone force-pushed the brent/refactor-validator-sets branch from 685ad4b to 65c174a Compare November 1, 2022 18:38
@brentstone brentstone force-pushed the brent/refactor-validator-sets branch from 82cfb92 to c674cd3 Compare November 18, 2022 18:27
@cwgoes
Copy link
Collaborator

cwgoes commented Jan 5, 2023

Is this PR still relevant? @brentstone

@brentstone
Copy link
Collaborator Author

Is this PR still relevant? @brentstone

Yes still relevant, held out on further development atm because future changes will now largely depend on #740, which is still yet to be completed.

@cwgoes cwgoes added this to the 0.15 milestone Jan 16, 2023
@adrianbrink
Copy link
Member

Closing this for now, since it's stale. @brentstone we still want this but it needs to rebased and then it can be reopened.

@brentstone brentstone deleted the brent/refactor-validator-sets branch December 29, 2023 21:43
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.

4 participants