mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 05:51:02 +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:
@@ -380,7 +380,7 @@ impl pallet_election_provider_multi_phase::Config for Runtime {
|
||||
type MinerTxPriority = NposSolutionPriority;
|
||||
type DataProvider = Staking;
|
||||
type OnChainAccuracy = Perbill;
|
||||
type CompactSolution = NposCompactSolution16;
|
||||
type Solution = NposCompactSolution16;
|
||||
type Fallback = Fallback;
|
||||
type BenchmarkingConfig = runtime_common::elections::BenchmarkConfig;
|
||||
type ForceOrigin = EnsureRoot<AccountId>;
|
||||
@@ -411,7 +411,7 @@ parameter_types! {
|
||||
|
||||
impl pallet_staking::Config for Runtime {
|
||||
const MAX_NOMINATIONS: u32 =
|
||||
<NposCompactSolution16 as sp_npos_elections::CompactSolution>::LIMIT as u32;
|
||||
<NposCompactSolution16 as sp_npos_elections::NposSolution>::LIMIT as u32;
|
||||
type Currency = Balances;
|
||||
type UnixTime = Timestamp;
|
||||
type CurrencyToVote = CurrencyToVote;
|
||||
@@ -708,11 +708,13 @@ impl InstanceFilter<Call> for ProxyType {
|
||||
Call::Slots(..) |
|
||||
Call::Auctions(..) // Specifically omitting the entire XCM Pallet
|
||||
),
|
||||
ProxyType::Staking =>
|
||||
matches!(c, Call::Staking(..) | Call::Session(..) | Call::Utility(..)),
|
||||
ProxyType::Staking => {
|
||||
matches!(c, Call::Staking(..) | Call::Session(..) | Call::Utility(..))
|
||||
},
|
||||
ProxyType::SudoBalances => match c {
|
||||
Call::Sudo(pallet_sudo::Call::sudo(ref x)) =>
|
||||
matches!(x.as_ref(), &Call::Balances(..)),
|
||||
Call::Sudo(pallet_sudo::Call::sudo(ref x)) => {
|
||||
matches!(x.as_ref(), &Call::Balances(..))
|
||||
},
|
||||
Call::Utility(..) => true,
|
||||
_ => false,
|
||||
},
|
||||
@@ -720,8 +722,9 @@ impl InstanceFilter<Call> for ProxyType {
|
||||
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