From c542916bae96b73fb456b08d1600fc15c1d3772d Mon Sep 17 00:00:00 2001 From: unconst Date: Thu, 9 Jan 2025 15:03:04 -0500 Subject: [PATCH] dynamic block --- pallets/subtensor/src/migrations/migrate_rao.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/subtensor/src/migrations/migrate_rao.rs b/pallets/subtensor/src/migrations/migrate_rao.rs index 6fc89638f..d8eceadcc 100644 --- a/pallets/subtensor/src/migrations/migrate_rao.rs +++ b/pallets/subtensor/src/migrations/migrate_rao.rs @@ -31,7 +31,7 @@ pub fn migrate_rao() -> Weight { weight = weight.saturating_add(T::DbWeight::get().reads_writes(netuids.len() as u64, 0)); // Set the Dynamic block. - DynamicBlock::::insert(netuid, Pallet::::get_current_block_as_u64() ); + DynamicBlock::::set( Pallet::::get_current_block_as_u64() ); // Migrate all TAO to root. Stake::::iter().for_each(|(hotkey, coldkey, stake)| {