Skip to content

Commit

Permalink
fix benchmark function
Browse files Browse the repository at this point in the history
  • Loading branch information
open-junius committed Jul 8, 2024
1 parent be043ac commit 25744e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pallets/subtensor/src/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ reveal_weights {

let netuid = 1u16;
let tempo = 1u16;
let block_number: u64 = Subtensor::<T>::get_current_block_as_u64();
let nonce = 0;

// Initialize the network
Subtensor::<T>::init_new_network(netuid, tempo);
Expand All @@ -452,5 +454,5 @@ reveal_weights {
hotkey.clone()
));

}: schedule_coldkey_swap(RawOrigin::Signed(old_coldkey.clone()), new_coldkey)
}: schedule_coldkey_swap(RawOrigin::Signed(old_coldkey.clone()), new_coldkey.clone(), vec![], block_number, nonce)
}

0 comments on commit 25744e4

Please sign in to comment.