Skip to content

Commit

Permalink
chore: pending tick set to 0 when block closed
Browse files Browse the repository at this point in the history
  • Loading branch information
mohiiit committed Dec 23, 2024
1 parent 752b5af commit 9c53e2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/client/block_production/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ impl<Mempool: MempoolProvider> BlockProductionTask<Mempool> {
if block_closed {
interval_pending_block_update.reset_at(instant + interval_pending_block_update.period());
interval_block_time.reset_at(instant + interval_block_time.period());
self.current_pending_tick = 0;
} else {
self.current_pending_tick += 1;
}
Expand Down

0 comments on commit 9c53e2d

Please sign in to comment.