Skip to content

Commit a6d13f6

Browse files
committed
Add short default tempo to fast-blocks feature
1 parent 6764633 commit a6d13f6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

runtime/src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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.
852858
parameter_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.

0 commit comments

Comments
 (0)