Skip to content

Commit fb98188

Browse files
committed
set set_children rate limit to 30min
1 parent 29ea11c commit fb98188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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(),

0 commit comments

Comments
 (0)