Skip to content

Commit 0dcba52

Browse files
committed
remove bonds for validator on de-reg
1 parent da68441 commit 0dcba52

File tree

1 file changed

+1
-1
lines changed
  • pallets/subtensor/src/subnets

1 file changed

+1
-1
lines changed

pallets/subtensor/src/subnets/uids.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl<T: Config> Pallet<T> {
2323
Consensus::<T>::mutate(netuid, |v| Self::set_element_at(v, neuron_index, 0));
2424
Incentive::<T>::mutate(netuid, |v| Self::set_element_at(v, neuron_index, 0));
2525
Dividends::<T>::mutate(netuid, |v| Self::set_element_at(v, neuron_index, 0));
26-
Bonds::<T>::mutate(netuid, |v| Self::set_element_at(v, neuron_index, 0));
26+
Bonds::<T>::remove(netuid, neuron_uid); // Remove bonds for Validator.
2727
}
2828

2929
/// Replace the neuron under this uid.

0 commit comments

Comments
 (0)