-
Notifications
You must be signed in to change notification settings - Fork 680
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactors staking and
stake-tracker
so that target and voter lists …
…include idle stakers (#2497) In this PR we change the current assumptions so that `TargetList` and `VoterList` **also** keep track of the idle stakers (w.g. chilled) and the target scores are tracked and updated even while the validator is chilled. The idle stakers will be removed when the ledger unbonds. This allows the stake-tracker to keep track of the chilled validators and respective score so that a re-validate of a chilled validator is brought up with the correct target score (i.e. self stake + all current nominations in the system). --------- Co-authored-by: command-bot <>
- Loading branch information
Showing
7 changed files
with
311 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.