Skip to content

Commit 12c4d1f

Browse files
committed
remove increase stake swap migrate
1 parent dfd96f6 commit 12c4d1f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

pallets/subtensor/src/migrations/migrate_fix_pending_emission.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,6 @@ fn swap_pending_emissions<T: Config>(
2222
PendingdHotkeyEmission::<T>::insert(new_hotkey, pending_emissions);
2323
weight.saturating_accrue(T::DbWeight::get().writes(1));
2424

25-
// Swap the last LastAddStakeIncrease
26-
let old_coldkey_entries: Vec<(T::AccountId, u64)> =
27-
LastAddStakeIncrease::<T>::iter_prefix(old_hotkey).collect();
28-
if !old_coldkey_entries.is_empty() {
29-
for (coldkey, last_add_stake_increase) in old_coldkey_entries {
30-
LastAddStakeIncrease::<T>::remove(old_hotkey, &coldkey);
31-
LastAddStakeIncrease::<T>::insert(new_hotkey, &coldkey, last_add_stake_increase);
32-
weight.saturating_accrue(T::DbWeight::get().reads_writes(1, 2));
33-
}
34-
}
35-
3625
weight
3726
}
3827

0 commit comments

Comments
 (0)