From ea16b72e0bca4cb828460a887ff6dc71e4d51a97 Mon Sep 17 00:00:00 2001 From: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Date: Fri, 12 Nov 2021 13:13:53 +0000 Subject: [PATCH] Enable full use of pallet-bags-list in westend and kusama runtimes (#4195) --- polkadot/runtime/kusama/src/lib.rs | 2 +- polkadot/runtime/westend/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/polkadot/runtime/kusama/src/lib.rs b/polkadot/runtime/kusama/src/lib.rs index d924bd6030..d0a26e42cd 100644 --- a/polkadot/runtime/kusama/src/lib.rs +++ b/polkadot/runtime/kusama/src/lib.rs @@ -554,7 +554,7 @@ impl pallet_staking::Config for Runtime { type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator; type OffendingValidatorsThreshold = OffendingValidatorsThreshold; // Use the nominators map to iter voters, but also keep bags-list up-to-date. - type SortedListProvider = runtime_common::elections::UseNominatorsAndUpdateBagsList; + type SortedListProvider = BagsList; type WeightInfo = weights::pallet_staking::WeightInfo; } diff --git a/polkadot/runtime/westend/src/lib.rs b/polkadot/runtime/westend/src/lib.rs index 8ff636abf5..9f50253e63 100644 --- a/polkadot/runtime/westend/src/lib.rs +++ b/polkadot/runtime/westend/src/lib.rs @@ -456,7 +456,7 @@ impl pallet_staking::Config for Runtime { type ElectionProvider = ElectionProviderMultiPhase; type GenesisElectionProvider = runtime_common::elections::GenesisElectionOf; // Use the nominators map to iter voters, but also keep bags-list up-to-date. - type SortedListProvider = runtime_common::elections::UseNominatorsAndUpdateBagsList; + type SortedListProvider = BagsList; type WeightInfo = weights::pallet_staking::WeightInfo; }