fix(reth-bench): stop fetcher when reaching chain tip (#21568)

This commit is contained in:
Alexey Shekhirin
2026-01-29 11:34:15 +00:00
committed by GitHub
parent 2d71243cf6
commit 92b8857625

View File

@@ -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,