Skip to content

Commit c596998

Browse files
committed
Set that migration has run for StakeThreshold migration
1 parent 91c0d4a commit c596998

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pallets/subtensor/src/migrations/migrate_stake_threshold.rs

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ pub fn migrate_stake_threshold<T: Config>() -> Weight {
3636

3737
weight = weight.saturating_add(T::DbWeight::get().reads_writes(1, 1));
3838

39+
HasMigrationRun::<T>::insert(&migration_name, true);
40+
weight = weight.saturating_add(T::DbWeight::get().writes(1));
41+
3942
log::info!(
4043
"Migration '{:?}' completed successfully.",
4144
String::from_utf8_lossy(&migration_name)

0 commit comments

Comments
 (0)