Skip to content

Commit

Permalink
set set_children rate limit to 30min
Browse files Browse the repository at this point in the history
  • Loading branch information
camfairchild committed Dec 10, 2024
1 parent 29ea11c commit fb98188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/subtensor/src/utils/rate_limiting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl<T: Config> Pallet<T> {
/// 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::<T>::get(),
TransactionType::Unknown => 0, // Default to no limit for unknown types (no limit)
TransactionType::RegisterNetwork => NetworkRateLimit::<T>::get(),
Expand Down

0 comments on commit fb98188

Please sign in to comment.