Skip to content

Commit 1011425

Browse files
committed
Add short InitialTxChildkeyTakeRateLimit to fast-blocks feature
1 parent a6d13f6 commit 1011425

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
@@ -854,6 +854,12 @@ pub const INITIAL_SUBNET_TEMPO: u16 = 99;
854854
#[cfg(feature = "fast-blocks")]
855855
pub const INITIAL_SUBNET_TEMPO: u16 = 10;
856856

857+
#[cfg(not(feature = "fast-blocks"))]
858+
pub const INITIAL_CHILDKEY_TAKE_RATELIMIT: u64 = 216000; // 30 days at 12 seconds per block
859+
860+
#[cfg(feature = "fast-blocks")]
861+
pub const INITIAL_CHILDKEY_TAKE_RATELIMIT: u64 = 5;
862+
857863
// Configure the pallet subtensor.
858864
parameter_types! {
859865
pub const SubtensorInitialRho: u16 = 10;
@@ -889,7 +895,7 @@ parameter_types! {
889895
pub const SubtensorInitialMaxBurn: u64 = 100_000_000_000; // 100 tao
890896
pub const SubtensorInitialTxRateLimit: u64 = 1000;
891897
pub const SubtensorInitialTxDelegateTakeRateLimit: u64 = 216000; // 30 days at 12 seconds per block
892-
pub const SubtensorInitialTxChildKeyTakeRateLimit: u64 = 216000; // 30 days at 12 seconds per block
898+
pub const SubtensorInitialTxChildKeyTakeRateLimit: u64 = INITIAL_CHILDKEY_TAKE_RATELIMIT;
893899
pub const SubtensorInitialRAORecycledForRegistration: u64 = 0; // 0 rao
894900
pub const SubtensorInitialSenateRequiredStakePercentage: u64 = 1; // 1 percent of total stake
895901
pub const SubtensorInitialNetworkImmunity: u64 = 7 * 7200;

0 commit comments

Comments
 (0)