Update eth/fetcher/tx_fetcher.go

Co-authored-by: jwasinger <j-wasinger@hotmail.com>
This commit is contained in:
Sina M 2026-04-24 12:12:26 +02:00 committed by MariusVanDerWijden
parent a835267289
commit a86eaceda0

View file

@ -991,8 +991,6 @@ func (f *TxFetcher) scheduleFetches(timer *mclock.Timer, timeout chan struct{},
if len(f.announces[peer]) == 0 {
return // continue in the for-each
}
// hashes is allocated lazily: peers that collect no new hashes
// (all announces already being fetched) skip the 8KB allocation.
var (
hashes []common.Hash
bytes uint64