Skip to content

Commit 49496fc

Browse files
gztensorbrainsucker
authored andcommitted
Add StakeWeight to clean_neuron
1 parent 2166cd6 commit 49496fc

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

pallets/subtensor/src/subnets/uids.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ impl<T: Config> Pallet<T> {
4646
}
4747
}
4848
Dividends::<T>::mutate(netuid, |v| Self::set_element_at(v, neuron_index, 0));
49+
StakeWeight::<T>::mutate(netuid, |v| Self::set_element_at(v, neuron_index, 0));
4950
}
5051

5152
/// Replace the neuron under this uid.

0 commit comments

Comments
 (0)