Skip to content

Commit 3de5b03

Browse files
committed
Update run_coinbase.rs
1 parent 6764633 commit 3de5b03

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pallets/subtensor/src/coinbase/run_coinbase.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ impl<T: Config> Pallet<T> {
131131
log::debug!("Accumulated emissions on hotkey {:?} for netuid {:?}: mining {:?}, validator {:?}", hotkey, *netuid, mining_emission, validator_emission);
132132
}
133133
} else {
134+
// No epoch, increase blocks since last step and continue,
135+
Self::set_blocks_since_last_step(
136+
*netuid,
137+
Self::get_blocks_since_last_step(*netuid).saturating_add(1),
138+
);
134139
log::debug!("Tempo not reached for subnet: {:?}", *netuid);
135140
}
136141
}

0 commit comments

Comments
 (0)