File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
crates/subspace-runtime/src Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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.
586585const_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+
588590impl pallet_domains:: Config for Runtime {
589591 type RuntimeEvent = RuntimeEvent ;
590592 type DomainHash = DomainHash ;
You can’t perform that action at this time.
0 commit comments