From c7ee98ab5f56d8a8c8addabadf060ba82e62629f Mon Sep 17 00:00:00 2001 From: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Date: Sat, 24 Apr 2021 16:48:43 +0200 Subject: [PATCH] Update lib.rs (#2926) --- polkadot/runtime/kusama/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/polkadot/runtime/kusama/src/lib.rs b/polkadot/runtime/kusama/src/lib.rs index 77cd2b3fec1..7298a31ff71 100644 --- a/polkadot/runtime/kusama/src/lib.rs +++ b/polkadot/runtime/kusama/src/lib.rs @@ -325,11 +325,11 @@ parameter_types! { sp_npos_elections::generate_solution_type!( #[compact] - pub struct NposCompactSolution16::< + pub struct NposCompactSolution24::< VoterIndex = u32, TargetIndex = u16, Accuracy = sp_runtime::PerU16, - >(16) + >(24) ); impl pallet_election_provider_multi_phase::Config for Runtime { @@ -344,7 +344,7 @@ impl pallet_election_provider_multi_phase::Config for Runtime { type MinerTxPriority = NposSolutionPriority; type DataProvider = Staking; type OnChainAccuracy = Perbill; - type CompactSolution = NposCompactSolution16; + type CompactSolution = NposCompactSolution24; type Fallback = Fallback; type BenchmarkingConfig = (); type WeightInfo = weights::pallet_election_provider_multi_phase::WeightInfo<Runtime>; @@ -384,7 +384,7 @@ type SlashCancelOrigin = EnsureOneOf< >; impl pallet_staking::Config for Runtime { - const MAX_NOMINATIONS: u32 = <NposCompactSolution16 as sp_npos_elections::CompactSolution>::LIMIT as u32; + const MAX_NOMINATIONS: u32 = <NposCompactSolution24 as sp_npos_elections::CompactSolution>::LIMIT as u32; type Currency = Balances; type UnixTime = Timestamp; type CurrencyToVote = CurrencyToVote; -- GitLab