Skip to content

Commit

Permalink
remove unnecessary steps
Browse files Browse the repository at this point in the history
  • Loading branch information
open-junius committed Jan 9, 2025
1 parent cb0c805 commit eccc3db
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pallets/subtensor/src/subnets/uids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,8 @@ impl<T: Config> Pallet<T> {

// We add the balance to the coldkey. If the above fails we will not credit this coldkey.
Self::add_balance_to_coldkey_account(&coldkey, tao_unstaked);

// If the stake is below the minimum, we clear the nomination from storage.
Self::clear_small_nomination_if_required(&old_hotkey, &coldkey, netuid);
}
}

// 6. Check if stake lowered below MinStake and remove Pending children if it did
if Self::get_total_stake_for_hotkey(&old_hotkey) < StakeThreshold::<T>::get() {
Self::get_all_subnet_netuids().iter().for_each(|netuid| {
PendingChildKeys::<T>::remove(netuid, &old_hotkey);
})
}
}

/// Appends the uid to the network.
Expand Down

0 comments on commit eccc3db

Please sign in to comment.