Skip to content

Commit eccc3db

Browse files
committed
remove unnecessary steps
1 parent cb0c805 commit eccc3db

File tree

1 file changed

+0
-10
lines changed
  • pallets/subtensor/src/subnets

1 file changed

+0
-10
lines changed

pallets/subtensor/src/subnets/uids.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,8 @@ impl<T: Config> Pallet<T> {
5252

5353
// We add the balance to the coldkey. If the above fails we will not credit this coldkey.
5454
Self::add_balance_to_coldkey_account(&coldkey, tao_unstaked);
55-
56-
// If the stake is below the minimum, we clear the nomination from storage.
57-
Self::clear_small_nomination_if_required(&old_hotkey, &coldkey, netuid);
5855
}
5956
}
60-
61-
// 6. Check if stake lowered below MinStake and remove Pending children if it did
62-
if Self::get_total_stake_for_hotkey(&old_hotkey) < StakeThreshold::<T>::get() {
63-
Self::get_all_subnet_netuids().iter().for_each(|netuid| {
64-
PendingChildKeys::<T>::remove(netuid, &old_hotkey);
65-
})
66-
}
6757
}
6858

6959
/// Appends the uid to the network.

0 commit comments

Comments
 (0)