companion for validator self-vote in bags (#5088)

* companion for validator self-vote in bags

* fix

* cargo update -p sp-io
This commit is contained in:
Kian Paimani
2022-03-23 15:31:03 +00:00
committed by GitHub
parent 91e07d53ad
commit b1f9fb2aaa
5 changed files with 180 additions and 172 deletions
+5 -2
View File
@@ -580,7 +580,7 @@ impl pallet_staking::Config for Runtime {
type NextNewSession = Session;
type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator;
type OffendingValidatorsThreshold = OffendingValidatorsThreshold;
type SortedListProvider = BagsList;
type VoterList = BagsList;
type MaxUnlockingChunks = frame_support::traits::ConstU32<32>;
type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig;
type WeightInfo = weights::pallet_staking::WeightInfo<Runtime>;
@@ -1519,7 +1519,10 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
CrowdloanIndexMigration,
(
CrowdloanIndexMigration,
pallet_staking::migrations::v9::InjectValidatorsIntoVoterList<Runtime>,
),
>;
/// The payload being signed in the transactions.
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;