mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 19:51:02 +00:00
* Fixing polkadot after subtrate changes
`MAX_NOMINATIONS` was changed to `MaxNominations`
* Fixing some more places
* Apply suggestions from code review
* update lockfile for {"substrate"}
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -545,6 +545,8 @@ parameter_types! {
|
||||
pub const SlashDeferDuration: sp_staking::EraIndex = 27;
|
||||
pub const MaxNominatorRewardedPerValidator: u32 = 256;
|
||||
pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17);
|
||||
// 24
|
||||
pub const MaxNominations: u32 = <NposCompactSolution24 as sp_npos_elections::NposSolution>::LIMIT as u32;
|
||||
}
|
||||
|
||||
type SlashCancelOrigin = EnsureOneOf<
|
||||
@@ -558,8 +560,7 @@ impl frame_election_provider_support::onchain::Config for Runtime {
|
||||
}
|
||||
|
||||
impl pallet_staking::Config for Runtime {
|
||||
const MAX_NOMINATIONS: u32 =
|
||||
<NposCompactSolution24 as sp_npos_elections::NposSolution>::LIMIT as u32;
|
||||
type MaxNominations = MaxNominations;
|
||||
type Currency = Balances;
|
||||
type UnixTime = Timestamp;
|
||||
type CurrencyToVote = CurrencyToVote;
|
||||
|
||||
Reference in New Issue
Block a user