Skip to content

Commit 480b1c5

Browse files
committed
add comment
1 parent e009ff1 commit 480b1c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/subtensor/src/migration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub fn do_migrate_fix_total_coldkey_stake<T: Config>() -> Weight {
3737
// Initialize the weight with one read operation.
3838
let mut weight = T::DbWeight::get().reads(1);
3939

40-
// Clear everything from the map first
40+
// Clear everything from the map first, no limit (u32::MAX)
4141
let removal_results = TotalColdkeyStake::<T>::clear(u32::MAX, None);
4242
// 1 read/write per removal
4343
let entries_removed: u64 = removal_results.backend.into();

0 commit comments

Comments
 (0)