Skip to content

Commit

Permalink
dynamic block
Browse files Browse the repository at this point in the history
  • Loading branch information
unconst committed Jan 9, 2025
1 parent 71b05c1 commit c542916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/subtensor/src/migrations/migrate_rao.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn migrate_rao<T: Config>() -> Weight {
weight = weight.saturating_add(T::DbWeight::get().reads_writes(netuids.len() as u64, 0));

// Set the Dynamic block.
DynamicBlock::<T>::insert(netuid, Pallet::<T>::get_current_block_as_u64() );
DynamicBlock::<T>::set( Pallet::<T>::get_current_block_as_u64() );

// Migrate all TAO to root.
Stake::<T>::iter().for_each(|(hotkey, coldkey, stake)| {
Expand Down

0 comments on commit c542916

Please sign in to comment.