make slashing instant and decrease bonding duration to one era, needed for TUI development only

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch 2025-01-20 18:03:03 +03:00
parent f4c8144c71
commit f1eca789a4
Signed by: str3tch
GPG Key ID: 84F3190747EE79AA

View File

@ -484,8 +484,8 @@ pallet_staking_reward_curve::build! {
parameter_types! {
pub const SessionsPerEra: sp_staking::SessionIndex = prod_or_fast!(6, 1);
pub const BondingDuration: sp_staking::EraIndex = prod_or_fast!(28, 28);
pub const SlashDeferDuration: sp_staking::EraIndex = prod_or_fast!(27, 27);
pub const BondingDuration: sp_staking::EraIndex = prod_or_fast!(1, 1);
pub const SlashDeferDuration: sp_staking::EraIndex = prod_or_fast!(0, 0);
pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE;
pub const MaxExposurePageSize: u32 = 512;
pub const MaxNominators: u32 = 512;