mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 11:41:02 +00:00
Update lib.rs (#2926)
This commit is contained in:
@@ -325,11 +325,11 @@ parameter_types! {
|
|||||||
|
|
||||||
sp_npos_elections::generate_solution_type!(
|
sp_npos_elections::generate_solution_type!(
|
||||||
#[compact]
|
#[compact]
|
||||||
pub struct NposCompactSolution16::<
|
pub struct NposCompactSolution24::<
|
||||||
VoterIndex = u32,
|
VoterIndex = u32,
|
||||||
TargetIndex = u16,
|
TargetIndex = u16,
|
||||||
Accuracy = sp_runtime::PerU16,
|
Accuracy = sp_runtime::PerU16,
|
||||||
>(16)
|
>(24)
|
||||||
);
|
);
|
||||||
|
|
||||||
impl pallet_election_provider_multi_phase::Config for Runtime {
|
impl pallet_election_provider_multi_phase::Config for Runtime {
|
||||||
@@ -344,7 +344,7 @@ impl pallet_election_provider_multi_phase::Config for Runtime {
|
|||||||
type MinerTxPriority = NposSolutionPriority;
|
type MinerTxPriority = NposSolutionPriority;
|
||||||
type DataProvider = Staking;
|
type DataProvider = Staking;
|
||||||
type OnChainAccuracy = Perbill;
|
type OnChainAccuracy = Perbill;
|
||||||
type CompactSolution = NposCompactSolution16;
|
type CompactSolution = NposCompactSolution24;
|
||||||
type Fallback = Fallback;
|
type Fallback = Fallback;
|
||||||
type BenchmarkingConfig = ();
|
type BenchmarkingConfig = ();
|
||||||
type WeightInfo = weights::pallet_election_provider_multi_phase::WeightInfo<Runtime>;
|
type WeightInfo = weights::pallet_election_provider_multi_phase::WeightInfo<Runtime>;
|
||||||
@@ -384,7 +384,7 @@ type SlashCancelOrigin = EnsureOneOf<
|
|||||||
>;
|
>;
|
||||||
|
|
||||||
impl pallet_staking::Config for Runtime {
|
impl pallet_staking::Config for Runtime {
|
||||||
const MAX_NOMINATIONS: u32 = <NposCompactSolution16 as sp_npos_elections::CompactSolution>::LIMIT as u32;
|
const MAX_NOMINATIONS: u32 = <NposCompactSolution24 as sp_npos_elections::CompactSolution>::LIMIT as u32;
|
||||||
type Currency = Balances;
|
type Currency = Balances;
|
||||||
type UnixTime = Timestamp;
|
type UnixTime = Timestamp;
|
||||||
type CurrencyToVote = CurrencyToVote;
|
type CurrencyToVote = CurrencyToVote;
|
||||||
|
|||||||
Reference in New Issue
Block a user