File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -848,6 +848,12 @@ impl pallet_commitments::Config for Runtime {
848848 type RateLimit = CommitmentRateLimit ;
849849}
850850
851+ #[ cfg( not( feature = "fast-blocks" ) ) ]
852+ pub const INITIAL_SUBNET_TEMPO : u16 = 99 ;
853+
854+ #[ cfg( feature = "fast-blocks" ) ]
855+ pub const INITIAL_SUBNET_TEMPO : u16 = 10 ;
856+
851857// Configure the pallet subtensor.
852858parameter_types ! {
853859 pub const SubtensorInitialRho : u16 = 10 ;
@@ -860,7 +866,7 @@ parameter_types! {
860866 pub const SubtensorInitialValidatorPruneLen : u64 = 1 ;
861867 pub const SubtensorInitialScalingLawPower : u16 = 50 ; // 0.5
862868 pub const SubtensorInitialMaxAllowedValidators : u16 = 128 ;
863- pub const SubtensorInitialTempo : u16 = 99 ;
869+ pub const SubtensorInitialTempo : u16 = INITIAL_SUBNET_TEMPO ;
864870 pub const SubtensorInitialDifficulty : u64 = 10_000_000 ;
865871 pub const SubtensorInitialAdjustmentInterval : u16 = 100 ;
866872 pub const SubtensorInitialAdjustmentAlpha : u64 = 0 ; // no weight to previous value.
You can’t perform that action at this time.
0 commit comments