Bound Election and Staking by MaxActiveValidators
This PR will bound pallet-stakingwith 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
MaxWinnerstoElectionProviderthat bounds the maximum winners that can be elected for an election. - Ensure
pallet-staking(ElectionDataProvider) never asks fordesired_targetshigher 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