We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1ca439 commit 1c83232Copy full SHA for 1c83232
pallets/subtensor/src/subnets/weights.rs
@@ -728,6 +728,7 @@ impl<T: Config> Pallet<T> {
728
// --- 7. Ensure the uid is not setting weights faster than the weights_set_rate_limit.
729
let neuron_uid = Self::get_uid_for_net_and_hotkey(netuid, &hotkey)?;
730
let current_block: u64 = Self::get_current_block_as_u64();
731
+
732
ensure!(
733
Self::check_rate_limit(netuid, neuron_uid, current_block),
734
Error::<T>::SettingWeightsTooFast
0 commit comments