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-Niklausandparity-processbot authored and GitHub committed 2021-03-28 08:47:52 +00:00
1 parent ef816b089d
commit 27b6d83974
4 files changed
+161 -154

No files matched your search

+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!(
#[compact]
pub struct NposCompactSolution16::<u32, u16, sp_runtime::PerU16>(16)
// -------------------- ^^ <NominatorIndex, ValidatorIndex, Accuracy>
pub struct NposCompactSolution16::<
VoterIndex = u32,
TargetIndex = u16,
Accuracy = sp_runtime::PerU16,
>(16)
);
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!(
#[compact]
pub struct NposCompactSolution16::<u32, u16, sp_runtime::PerU16>(16)
// -------------------- ^^ <NominatorIndex, ValidatorIndex, Accuracy>
pub struct NposCompactSolution16::<
VoterIndex = u32,
TargetIndex = u16,
Accuracy = sp_runtime::PerU16,
>(16)
);
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!(
#[compact]
pub struct NposCompactSolution16::<u32, u16, sp_runtime::PerU16>(16)
// -------------------- ^^ <NominatorIndex, ValidatorIndex, Accuracy>
pub struct NposCompactSolution16::<
VoterIndex = u32,
TargetIndex = u16,
Accuracy = sp_runtime::PerU16,
>(16)
);
impl pallet_election_provider_multi_phase::Config for Runtime {