use named generic types in generate_solution_type (#2707)

* use named generic types in generate_solution_type

* "Update Substrate"

Co-authored-by: parity-processbot <>
This commit is contained in:
Peter Goodspeed-Niklaus
2021-03-28 10:47:52 +02:00
committed by GitHub
parent ef816b089d
commit 27b6d83974
4 changed files with 161 additions and 154 deletions
+146 -148
View File
File diff suppressed because it is too large Load Diff
+5 -2
View File
@@ -321,8 +321,11 @@ parameter_types! {
sp_npos_elections::generate_solution_type!( sp_npos_elections::generate_solution_type!(
#[compact] #[compact]
pub struct NposCompactSolution16::<u32, u16, sp_runtime::PerU16>(16) pub struct NposCompactSolution16::<
// -------------------- ^^ <NominatorIndex, ValidatorIndex, Accuracy> VoterIndex = u32,
TargetIndex = u16,
Accuracy = sp_runtime::PerU16,
>(16)
); );
impl pallet_election_provider_multi_phase::Config for Runtime { impl pallet_election_provider_multi_phase::Config for Runtime {
+5 -2
View File
@@ -331,8 +331,11 @@ parameter_types! {
sp_npos_elections::generate_solution_type!( sp_npos_elections::generate_solution_type!(
#[compact] #[compact]
pub struct NposCompactSolution16::<u32, u16, sp_runtime::PerU16>(16) pub struct NposCompactSolution16::<
// -------------------- ^^ <NominatorIndex, ValidatorIndex, Accuracy> VoterIndex = u32,
TargetIndex = u16,
Accuracy = sp_runtime::PerU16,
>(16)
); );
impl pallet_election_provider_multi_phase::Config for Runtime { impl pallet_election_provider_multi_phase::Config for Runtime {
+5 -2
View File
@@ -313,8 +313,11 @@ parameter_types! {
sp_npos_elections::generate_solution_type!( sp_npos_elections::generate_solution_type!(
#[compact] #[compact]
pub struct NposCompactSolution16::<u32, u16, sp_runtime::PerU16>(16) pub struct NposCompactSolution16::<
// -------------------- ^^ <NominatorIndex, ValidatorIndex, Accuracy> VoterIndex = u32,
TargetIndex = u16,
Accuracy = sp_runtime::PerU16,
>(16)
); );
impl pallet_election_provider_multi_phase::Config for Runtime { impl pallet_election_provider_multi_phase::Config for Runtime {