clear storage based on provided history depth

Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
Uncle Stinky
2025-06-18 13:47:13 +03:00
parent b5845924dc
commit 417de5a7b2
4 changed files with 51 additions and 4 deletions

View File

@@ -187,6 +187,7 @@ pallet_staking_reward_curve::build! {
parameter_types! {
pub static ExistentialDeposit: u64 = 2;
pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE;
pub const HistoryDepth: u32 = 10;
}
#[derive_impl(pallet_balances::config_preludes::TestDefaultConfig)]
@@ -212,6 +213,7 @@ impl Config for Runtime {
type ApplauseThreshold = ConstU32<50>;
type OffenceThreshold = ConstU32<75>;
type UnsignedPriority = ConstU64<{ 1 << 20 }>;
type HistoryDepth = HistoryDepth;
type WeightInfo = ();
}