mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-21 09:59:55 +00:00
Companion for substrate/pull/8368 (#2683)
* Companion for https://github.com/paritytech/substrate/pull/8368 * "Update Substrate" Co-authored-by: parity-processbot <>
This commit is contained in:
1 parent
7149f764e4
commit
a2c3685cab
8 files changed
+182
-152
No files matched your search
@@ -311,6 +311,12 @@ parameter_types! {
|
||||
pub const MinerMaxIterations: u32 = 10;
|
||||
}
|
||||
|
||||
sp_npos_elections::generate_solution_type!(
|
||||
#[compact]
|
||||
pub struct NposCompactSolution16::<u32, u16, sp_runtime::PerU16>(16)
|
||||
// -------------------- ^^ <NominatorIndex, ValidatorIndex, Accuracy>
|
||||
);
|
||||
|
||||
impl pallet_election_provider_multi_phase::Config for Runtime {
|
||||
type Event = Event;
|
||||
type Currency = Balances;
|
||||
@@ -322,7 +328,7 @@ impl pallet_election_provider_multi_phase::Config for Runtime {
|
||||
type MinerTxPriority = NposSolutionPriority;
|
||||
type DataProvider = Staking;
|
||||
type OnChainAccuracy = Perbill;
|
||||
type CompactSolution = pallet_staking::CompactAssignments;
|
||||
type CompactSolution = NposCompactSolution16;
|
||||
type Fallback = Fallback;
|
||||
type BenchmarkingConfig = ();
|
||||
type WeightInfo = weights::pallet_election_provider_multi_phase::WeightInfo<Runtime>;
|
||||
@@ -351,6 +357,7 @@ parameter_types! {
|
||||
}
|
||||
|
||||
impl pallet_staking::Config for Runtime {
|
||||
const MAX_NOMINATIONS: u32 = <NposCompactSolution16 as sp_npos_elections::CompactSolution>::LIMIT as u32;
|
||||
type Currency = Balances;
|
||||
type UnixTime = Timestamp;
|
||||
type CurrencyToVote = CurrencyToVote;
|
||||
|
||||
Reference in new issue
Block a user