File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
pallets/subtensor/src/subnets Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -505,10 +505,12 @@ impl<T: Config> Pallet<T> {
505
505
// --- 9. Ensure the uid is not setting weights faster than the weights_set_rate_limit.
506
506
let neuron_uid = Self :: get_uid_for_net_and_hotkey ( netuid, & hotkey) ?;
507
507
let current_block: u64 = Self :: get_current_block_as_u64 ( ) ;
508
- ensure ! (
509
- Self :: check_rate_limit( netuid, neuron_uid, current_block) ,
510
- Error :: <T >:: SettingWeightsTooFast
511
- ) ;
508
+ if !Self :: get_commit_reveal_weights_enabled ( netuid) {
509
+ ensure ! (
510
+ Self :: check_rate_limit( netuid, neuron_uid, current_block) ,
511
+ Error :: <T >:: SettingWeightsTooFast
512
+ ) ;
513
+ }
512
514
513
515
// --- 10. Check that the neuron uid is an allowed validator permitted to set non-self weights.
514
516
ensure ! (
You can’t perform that action at this time.
0 commit comments