Skip to content

Commit 974e76b

Browse files
authored
Merge pull request #1085 from opentensor/feat/lower-set-children-rate-limit
set set_children rate limit to 30min
2 parents 29ea11c + 5965f9b commit 974e76b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pallets/subtensor/src/utils/rate_limiting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl<T: Config> Pallet<T> {
3939
/// Get the rate limit for a specific transaction type
4040
pub fn get_rate_limit(tx_type: &TransactionType) -> u64 {
4141
match tx_type {
42-
TransactionType::SetChildren => 7200, // Cannot set children twice within a day
42+
TransactionType::SetChildren => 150, // 30 minutes
4343
TransactionType::SetChildkeyTake => TxChildkeyTakeRateLimit::<T>::get(),
4444
TransactionType::Unknown => 0, // Default to no limit for unknown types (no limit)
4545
TransactionType::RegisterNetwork => NetworkRateLimit::<T>::get(),

runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
220220
// `spec_version`, and `authoring_version` are the same between Wasm and native.
221221
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
222222
// the compatible custom types.
223-
spec_version: 215,
223+
spec_version: 216,
224224
impl_version: 1,
225225
apis: RUNTIME_API_VERSIONS,
226226
transaction_version: 1,

0 commit comments

Comments
 (0)