mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
Companion for substrate/pull/9442 (#3594)
* Fix compact build * Fix again * fix staking miner * fmt * update Substrate Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -392,7 +392,7 @@ impl pallet_election_provider_multi_phase::Config for Runtime {
|
||||
type OffchainRepeat = OffchainRepeat;
|
||||
type MinerTxPriority = NposSolutionPriority;
|
||||
type DataProvider = Staking;
|
||||
type CompactSolution = NposCompactSolution24;
|
||||
type Solution = NposCompactSolution24;
|
||||
type OnChainAccuracy = Perbill;
|
||||
type Fallback = Fallback;
|
||||
type BenchmarkingConfig = runtime_common::elections::BenchmarkConfig;
|
||||
@@ -484,7 +484,7 @@ type SlashCancelOrigin = EnsureOneOf<
|
||||
|
||||
impl pallet_staking::Config for Runtime {
|
||||
const MAX_NOMINATIONS: u32 =
|
||||
<NposCompactSolution24 as sp_npos_elections::CompactSolution>::LIMIT as u32;
|
||||
<NposCompactSolution24 as sp_npos_elections::NposSolution>::LIMIT as u32;
|
||||
type Currency = Balances;
|
||||
type UnixTime = Timestamp;
|
||||
type CurrencyToVote = CurrencyToVote;
|
||||
@@ -1044,14 +1044,16 @@ impl InstanceFilter<Call> for ProxyType {
|
||||
Call::Treasury(..) | Call::Bounties(..) |
|
||||
Call::Tips(..) | Call::Utility(..)
|
||||
),
|
||||
ProxyType::Staking =>
|
||||
matches!(c, Call::Staking(..) | Call::Session(..) | Call::Utility(..)),
|
||||
ProxyType::Staking => {
|
||||
matches!(c, Call::Staking(..) | Call::Session(..) | Call::Utility(..))
|
||||
},
|
||||
ProxyType::IdentityJudgement => matches!(
|
||||
c,
|
||||
Call::Identity(pallet_identity::Call::provide_judgement(..)) | Call::Utility(..)
|
||||
),
|
||||
ProxyType::CancelProxy =>
|
||||
matches!(c, Call::Proxy(pallet_proxy::Call::reject_announcement(..))),
|
||||
ProxyType::CancelProxy => {
|
||||
matches!(c, Call::Proxy(pallet_proxy::Call::reject_announcement(..)))
|
||||
},
|
||||
}
|
||||
}
|
||||
fn is_superset(&self, o: &Self) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user