change bonding duration + change tip application time
@@ -484,8 +484,8 @@ pallet_staking_reward_curve::build! {
parameter_types! {
pub const SessionsPerEra: sp_staking::SessionIndex = 6;
- pub const BondingDuration: pallet_staking::EraIndex = 24 * 28;
- pub const SlashDeferDuration: pallet_staking::EraIndex = 24 * 28 - 1; //SlashDeferDuration should be less than BondingDuration https://github.com/paritytech/substrate/blob/49a4103f4bfef55be20a5c6d26e18ff3003c3353/frame/staking/src/lib.rs#L1402
+ pub const BondingDuration: pallet_staking::EraIndex = 28; //28 Days
+ pub const SlashDeferDuration: pallet_staking::EraIndex = 28 - 1; //SlashDeferDuration should be less than BondingDuration https://github.com/paritytech/substrate/blob/49a4103f4bfef55be20a5c6d26e18ff3003c3353/frame/staking/src/lib.rs#L1402
pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE;
pub const MaxNominatorRewardedPerValidator: u32 = 64;
pub const ElectionLookahead: BlockNumber = EPOCH_DURATION_IN_BLOCKS / 4;
@@ -675,7 +675,7 @@ impl pallet_treasury::Config for Runtime {
parameter_types! {
pub const DataDepositPerByte: Balance = CENTS;
- pub const TipCountdown: BlockNumber = DAYS;
+ pub const TipCountdown: BlockNumber = 4 * HOURS;
pub const TipFindersFee: Percent = Percent::from_percent(2);
pub const TipReportDepositBase: Balance = 10 * DOLLARS;
pub const TipReportDepositPerByte: Balance = CENTS;
