From 92b8857625ac5afb3ea20caf38452cfa0bafdc64 Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin Date: Thu, 29 Jan 2026 11:34:15 +0000 Subject: [PATCH] fix(reth-bench): stop fetcher when reaching chain tip (#21568) --- bin/reth-bench/src/bench/generate_big_block.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/reth-bench/src/bench/generate_big_block.rs b/bin/reth-bench/src/bench/generate_big_block.rs index 7cb7d99f29..95eb8062e4 100644 --- a/bin/reth-bench/src/bench/generate_big_block.rs +++ b/bin/reth-bench/src/bench/generate_big_block.rs @@ -543,6 +543,11 @@ impl Command { let mut current_block = start_block; while let Some(batch) = fetch_batch_with_retry(&collector, current_block).await { + if batch.transactions.is_empty() { + info!(block = current_block, "Reached chain tip, stopping fetcher"); + break; + } + info!( tx_count = batch.transactions.len(), gas_sent = batch.gas_sent,