substrate
substrate copied to clipboard
Bound Election and Staking by MaxActiveValidators
This PR will bound pallet-staking
with MaxActiveValidators
. It is part of an ongoing effort towards bounding all pallet-staking
storage items. https://github.com/paritytech/substrate/issues/12187.
- Add
BoundedSupports
. - Introduce
MaxWinners
toElectionProvider
that bounds the maximum winners that can be elected for an election. - Ensure
pallet-staking
(ElectionDataProvider
) never asks fordesired_targets
higher thanMaxWinners
. This ensures offchain miner does not need any changes to stay compatible with the new code.
Polkadot companion: https://github.com/paritytech/polkadot/pull/6157
bot rebase
Rebased
bot rebase
Rebased
bot rebase
Rebased
bot rebase
Rebased
bot rebase
Rebased
bot rebase
Rebased
bot merge