Skip to content

Commit

Permalink
does a root claim during root unstake
Browse files Browse the repository at this point in the history
  • Loading branch information
camfairchild committed Feb 3, 2025
1 parent e33cc4d commit 9da5af8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pallets/subtensor/src/staking/stake_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,9 @@ impl<T: Config> Pallet<T> {

// If this is a root-stake
if netuid == Self::get_root_netuid() {
// 5. Adjust root debt for this hotkey and coldkey.
// 5.1 Do a root claim
Self::do_root_claim(hotkey, coldkey);
// 5.2. Adjust root debt for this hotkey and coldkey.
Self::remove_stake_adjust_debt_for_hotkey_and_coldkey(hotkey, coldkey, alpha);
}

Expand Down

0 comments on commit 9da5af8

Please sign in to comment.