-
Notifications
You must be signed in to change notification settings - Fork 814
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bound some storage items for pallet
staking
and clean up deprecated…
… exposures (#7483) Building from #6445 on top of #7282 **Changes** - [x] Bound `Invulnerables`, vector of validators invulnerable to slashing. - Add `MaxInvulnerables` to bound `Invulnerables` Vec -> `BoundedVec`. - Set to constant 20 in the pallet (must be >= 17 for backward compatibility with runtime `westend`). - [x] Bound `Disabled Validators`, vector of validators that have offended in a given era and have been disabled. - Add `MaxDisabledValidators` to bound `DisabledValidators` Vec -> `BoundedVec`. - Set to constant 100 in the pallet (it should be <= 1/3 * `MaxValidatorsCount` according to the current disabling strategy). - [x] Remove `ErasStakers` and `ErasStakersClipped` (see #433 ), non-paged validators exposures. - They were deprecated in v14 and could have been removed since staking era 1504 (now it's > 1700). - They are already empty on Polkadot and Kusama. - Completing the task from #5986. Migrating pallet `staking` storage to v17 to apply all changes. **TO DO** (in a follow-up PR) - [ ] Bound `ErasStakersPaged` - this needs bounding `ExposurePage.others` vector - [ ] Bound `BondedEras` vector - [ ] Bound `ClaimedRewards` pages vector - [ ] Bound `ErasRewardPoints` - this needs bounding `EraRewardPoints.individual` BTreeMap - [ ] Bound `UnappliedSlashes` - [ ] Bound `SlashingSpans` - this needs bounding `SlashingSpans.prior` vector --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: kianenigma <kian@parity.io>
- Loading branch information
1 parent
bb1f89a
commit 0fa010d
Showing
23 changed files
with
176 additions
and
626 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
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
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
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
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
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.