1use super::*;
2
3generate_solution_type!(
4 #[compact]
5 pub struct NposSolution16::<
6 VoterIndex = u32,
7 TargetIndex = u16,
8 Accuracy = PerU16,
9 MaxVoters = ConstU32::<12500>
10 >(16)
11);
12
13#[derive(Debug)]
14pub struct MinerConfig;
15impl pallet_election_provider_multi_phase::unsigned::MinerConfig
16 for MinerConfig
17{
18 type AccountId = AccountId;
19 type MaxLength = ConstU32<10000>;
20 type MaxWeight = ();
21 type MaxVotesPerVoter = ConstU32<16>;
22 type Solution = NposSolution16;
23 type MaxWinners = ConstU32<1000>;
24
25 fn solution_weight(
26 _voters: u32,
27 _targets: u32,
28 _active_voters: u32,
29 _desired_targets: u32,
30 ) -> Weight {
31 Default::default()
32 }
33}