From f1eca789a41eb07f91f838da6a66fd3a702c2bab Mon Sep 17 00:00:00 2001 From: Uncle Stretch Date: Mon, 20 Jan 2025 18:03:03 +0300 Subject: [PATCH] make slashing instant and decrease bonding duration to one era, needed for TUI development only Signed-off-by: Uncle Stretch --- runtime/casper/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/casper/src/lib.rs b/runtime/casper/src/lib.rs index 11ba21f..5e0f8e2 100755 --- a/runtime/casper/src/lib.rs +++ b/runtime/casper/src/lib.rs @@ -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;