go-ethereum/eth/txtracker
Csaba Kiraly e99330b2bc eth/txtracker: seed lastFinalNum at startup to prevent genesis backfill
lastFinalNum started at 0, so the first checkFinalization after
startup iterated from block 1 to the current finalized head (~20M
blocks on mainnet) under the mutex, stalling the tracker and
potentially awarding bogus credit for ancient txs whose hashes
happened to match recently-received ones.

Seed lastFinalNum from chain.CurrentFinalBlock() in Start() so only
blocks finalized after startup are processed.
2026-04-10 10:26:33 +02:00
..
tracker.go eth/txtracker: seed lastFinalNum at startup to prevent genesis backfill 2026-04-10 10:26:33 +02:00
tracker_test.go eth: add tests for txtracker and dropper peer protection 2026-04-10 09:07:38 +02:00