From fb9818893ef42fb4d06948b56f9cb6ed38dbcd33 Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Tue, 10 Dec 2024 13:17:37 -0500 Subject: [PATCH 1/2] set set_children rate limit to 30min --- pallets/subtensor/src/utils/rate_limiting.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/subtensor/src/utils/rate_limiting.rs b/pallets/subtensor/src/utils/rate_limiting.rs index cc3ebc5a3..8b30f9665 100644 --- a/pallets/subtensor/src/utils/rate_limiting.rs +++ b/pallets/subtensor/src/utils/rate_limiting.rs @@ -39,7 +39,7 @@ impl Pallet { /// Get the rate limit for a specific transaction type pub fn get_rate_limit(tx_type: &TransactionType) -> u64 { match tx_type { - TransactionType::SetChildren => 7200, // Cannot set children twice within a day + TransactionType::SetChildren => 150, // 30 minutes TransactionType::SetChildkeyTake => TxChildkeyTakeRateLimit::::get(), TransactionType::Unknown => 0, // Default to no limit for unknown types (no limit) TransactionType::RegisterNetwork => NetworkRateLimit::::get(), From 5965f9b9a459053951b6466bb5338a2a60122886 Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Tue, 10 Dec 2024 13:21:35 -0500 Subject: [PATCH 2/2] spec bump --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 2316cb5f4..24d36b179 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -220,7 +220,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 215, + spec_version: 216, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,