File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
pallets/subtensor/src/subnets Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -169,19 +169,19 @@ impl<T: Config> Pallet<T> {
169
169
// We check the callers (hotkey) signature.
170
170
let hotkey_id = ensure_signed ( origin) ?;
171
171
172
- // Ensure the hotkey is registered somewhere.
173
- ensure ! (
174
- Self :: is_hotkey_registered_on_any_network( & hotkey_id) ,
175
- Error :: <T >:: HotKeyNotRegisteredInNetwork
176
- ) ;
177
-
178
172
// Check the ip signature validity.
179
173
ensure ! ( Self :: is_valid_ip_type( ip_type) , Error :: <T >:: InvalidIpType ) ;
180
174
ensure ! (
181
175
Self :: is_valid_ip_address( ip_type, ip) ,
182
176
Error :: <T >:: InvalidIpAddress
183
177
) ;
184
178
179
+ // Ensure the hotkey is registered somewhere.
180
+ ensure ! (
181
+ Self :: is_hotkey_registered_on_any_network( & hotkey_id) ,
182
+ Error :: <T >:: HotKeyNotRegisteredInNetwork
183
+ ) ;
184
+
185
185
// We get the previous axon info assoicated with this ( netuid, uid )
186
186
let mut prev_prometheus = Self :: get_prometheus_info ( netuid, & hotkey_id) ;
187
187
let current_block: u64 = Self :: get_current_block_as_u64 ( ) ;
You can’t perform that action at this time.
0 commit comments