use super::*; generate_solution_type!( #[compact] pub struct NposSolution16::< VoterIndex = u32, TargetIndex = u16, Accuracy = PerU16, MaxVoters = ConstU32::<22500> >(16) ); #[derive(Debug)] pub struct MinerConfig; impl pallet_election_provider_multi_phase::unsigned::MinerConfig for MinerConfig { type AccountId = AccountId; type MaxLength = ConstU32<{ 5 * 1024 * 1024 }>; type MaxWeight = (); type MaxVotesPerVoter = ConstU32<16>; type Solution = NposSolution16; type MaxWinners = ConstU32<1000>; fn solution_weight( _voters: u32, _targets: u32, _active_voters: u32, _desired_targets: u32, ) -> Weight { Default::default() } }