Skip to content

Commit 57c2b11

Browse files
committed
Add StakeWeight to clean_neuron
1 parent ca6e1be commit 57c2b11

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)