Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add a few staking params to fast-runtime build #5424

Merged
merged 2 commits into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into params
  • Loading branch information
gilescope authored Nov 9, 2022
commit 342bd6ebfd830e8ae7b587656f7fb310870ae458
9 changes: 3 additions & 6 deletions runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,11 +547,8 @@ impl pallet_staking::EraPayout<Balance> for EraPayout {

parameter_types! {
// Six sessions in an era (6 hours).
pub SessionsPerEra: SessionIndex = prod_or_fast!(
6,
6,
"KSM_SESSIONS_PER_ERA"
);
pub const SessionsPerEra: SessionIndex = prod_or_fast!(6, 1);

// 28 eras for unbonding (7 days).
pub BondingDuration: sp_staking::EraIndex = prod_or_fast!(
28,
Expand All @@ -564,7 +561,7 @@ parameter_types! {
27,
"DOT_SLASH_DEFER_DURATION"
);
pub const MaxNominatorRewardedPerValidator: u32 = 256;
pub const MaxNominatorRewardedPerValidator: u32 = 512;
pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17);
// 24
pub const MaxNominations: u32 = <NposCompactSolution24 as NposSolution>::LIMIT as u32;
Expand Down
7 changes: 2 additions & 5 deletions runtime/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,11 +533,8 @@ pallet_staking_reward_curve::build! {

parameter_types! {
// Six sessions in an era (24 hours).
pub SessionsPerEra: SessionIndex = prod_or_fast!(
6,
6,
"DOT_SESSIONS_PER_ERA"
);
pub const SessionsPerEra: SessionIndex = prod_or_fast!(6, 1);

// 28 eras for unbonding (28 days).
pub BondingDuration: sp_staking::EraIndex = prod_or_fast!(
28,
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.