Skip to content

Commit 2d7a75d

Browse files
authored
Merge pull request #2452 from subspace/update_challenge_period
Update block pruning depth and staking withdrawal locking period parameters
2 parents ecfb6bc + 1482514 commit 2d7a75d

File tree

1 file changed

+5
-3
lines changed
  • crates/subspace-runtime/src

1 file changed

+5
-3
lines changed

crates/subspace-runtime/src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -570,9 +570,8 @@ parameter_types! {
570570
pub const MaxBundlesPerBlock: u32 = 10;
571571
pub const DomainInstantiationDeposit: Balance = 100 * SSC;
572572
pub const MaxDomainNameLength: u32 = 32;
573-
pub const BlockTreePruningDepth: u32 = 256;
574-
// TODO: revisit these
575-
pub const StakeWithdrawalLockingPeriod: DomainNumber = 256;
573+
pub const BlockTreePruningDepth: u32 = 14_400;
574+
pub const StakeWithdrawalLockingPeriod: DomainNumber = 14_400;
576575
// TODO: revisit these. For now epoch every 10 mins for a 6 second block and only 100 number of staking
577576
// operations allowed within each epoch.
578577
pub const StakeEpochDuration: DomainNumber = 100;
@@ -585,6 +584,9 @@ parameter_types! {
585584
// Minimum operator stake must be >= minimum nominator stake since operator is also a nominator.
586585
const_assert!(MinOperatorStake::get() >= MinNominatorStake::get());
587586

587+
// Stake Withdrawal locking period must be >= Block tree pruning depth
588+
const_assert!(StakeWithdrawalLockingPeriod::get() >= BlockTreePruningDepth::get());
589+
588590
impl pallet_domains::Config for Runtime {
589591
type RuntimeEvent = RuntimeEvent;
590592
type DomainHash = DomainHash;

0 commit comments

Comments
 (0)