We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e009ff1 commit 480b1c5Copy full SHA for 480b1c5
pallets/subtensor/src/migration.rs
@@ -37,7 +37,7 @@ pub fn do_migrate_fix_total_coldkey_stake<T: Config>() -> Weight {
37
// Initialize the weight with one read operation.
38
let mut weight = T::DbWeight::get().reads(1);
39
40
- // Clear everything from the map first
+ // Clear everything from the map first, no limit (u32::MAX)
41
let removal_results = TotalColdkeyStake::<T>::clear(u32::MAX, None);
42
// 1 read/write per removal
43
let entries_removed: u64 = removal_results.backend.into();
0 commit comments