Companion to Moving NposSolution to frame #11031 (#5112)

* using `frame_npos_elections_solution_type`

* forget to commit one change

* substrate pallet renaming

* `Support` moved to frame in substrate

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
This commit is contained in:
Georges
2022-03-16 22:03:25 +00:00
committed by GitHub
parent f35f5ae9a4
commit 1c443c65ef
4 changed files with 168 additions and 169 deletions
+165 -166
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -543,7 +543,7 @@ parameter_types! {
pub const MaxNominatorRewardedPerValidator: u32 = 256; pub const MaxNominatorRewardedPerValidator: u32 = 256;
pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17); pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17);
// 24 // 24
pub const MaxNominations: u32 = <NposCompactSolution24 as sp_npos_elections::NposSolution>::LIMIT as u32; pub const MaxNominations: u32 = <NposCompactSolution24 as frame_election_provider_support::NposSolution>::LIMIT as u32;
} }
type SlashCancelOrigin = EnsureOneOf< type SlashCancelOrigin = EnsureOneOf<
+1 -1
View File
@@ -540,7 +540,7 @@ parameter_types! {
pub const MaxNominatorRewardedPerValidator: u32 = 256; pub const MaxNominatorRewardedPerValidator: u32 = 256;
pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17); pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17);
// 16 // 16
pub const MaxNominations: u32 = <NposCompactSolution16 as sp_npos_elections::NposSolution>::LIMIT as u32; pub const MaxNominations: u32 = <NposCompactSolution16 as frame_election_provider_support::NposSolution>::LIMIT as u32;
} }
type SlashCancelOrigin = EnsureOneOf< type SlashCancelOrigin = EnsureOneOf<
+1 -1
View File
@@ -434,7 +434,7 @@ parameter_types! {
pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE; pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE;
pub const MaxNominatorRewardedPerValidator: u32 = 64; pub const MaxNominatorRewardedPerValidator: u32 = 64;
pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17); pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17);
pub const MaxNominations: u32 = <NposCompactSolution16 as sp_npos_elections::NposSolution>::LIMIT as u32; pub const MaxNominations: u32 = <NposCompactSolution16 as frame_election_provider_support::NposSolution>::LIMIT as u32;
} }
impl frame_election_provider_support::onchain::Config for Runtime { impl frame_election_provider_support::onchain::Config for Runtime {