mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 19:51:02 +00:00
Companion for 12095 (#5924)
* Companion for 12095
* fix
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -489,6 +489,9 @@ impl pallet_election_provider_multi_phase::Config for Runtime {
|
||||
type OffchainRepeat = OffchainRepeat;
|
||||
type MinerTxPriority = NposSolutionPriority;
|
||||
type DataProvider = Staking;
|
||||
#[cfg(feature = "fast-runtime")]
|
||||
type Fallback = onchain::UnboundedExecution<OnChainSeqPhragmen>;
|
||||
#[cfg(not(feature = "fast-runtime"))]
|
||||
type Fallback = pallet_election_provider_multi_phase::NoFallback<Self>;
|
||||
type GovernanceFallback = onchain::UnboundedExecution<OnChainSeqPhragmen>;
|
||||
type Solver = SequentialPhragmen<
|
||||
@@ -582,7 +585,7 @@ impl pallet_staking::EraPayout<Balance> for EraPayout {
|
||||
|
||||
parameter_types! {
|
||||
// Six sessions in an era (6 hours).
|
||||
pub const SessionsPerEra: SessionIndex = 6;
|
||||
pub const SessionsPerEra: SessionIndex = prod_or_fast!(6, 1);
|
||||
// 28 eras for unbonding (7 days).
|
||||
pub const BondingDuration: sp_staking::EraIndex = 28;
|
||||
// 27 eras in which slashes can be cancelled (slightly less than 7 days).
|
||||
@@ -1868,7 +1871,7 @@ sp_api::impl_runtime_apis! {
|
||||
Balance,
|
||||
> for Runtime {
|
||||
fn pending_rewards(member: AccountId) -> Balance {
|
||||
NominationPools::pending_rewards(member)
|
||||
NominationPools::pending_rewards(member).unwrap_or_default()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user