Skip to content

Commit 3412916

Browse files
author
Samuel Dare
committed
hotfit: dont drain root emisions
1 parent 58c1f51 commit 3412916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/subtensor/src/coinbase/run_coinbase.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl<T: Config> Pallet<T> {
4747

4848
// --- 3. Drain the subnet block emission and accumulate it as subnet emission, which increases until the tempo is reached in #4.
4949
// subnet_blockwise_emission -> subnet_pending_emission
50-
for netuid in subnets.clone().iter() {
50+
for netuid in subnets.clone().iter().filter(|&&id| id != 0) {
5151
// --- 3.1 Get the network's block-wise emission amount.
5252
// This value is newly minted TAO which has not reached staking accounts yet.
5353
let subnet_blockwise_emission: u64 = EmissionValues::<T>::get(*netuid);

0 commit comments

Comments
 (0)