go-ethereum/eth/txtracker
Csaba Kiraly 3785d43db4 eth/txtracker: fetch head block by hash to avoid reorg-stale EMA
handleChainHead fetched the block by number only. If the tracker
goroutine lagged and that height was reorged before processing,
the EMA was computed from the wrong canonical block.

Use GetBlock(hash, number) with the header hash from the event to
fetch the exact block the event refers to, not whatever is currently
canonical at that height.
2026-04-10 10:34:33 +02:00
..
tracker.go eth/txtracker: fetch head block by hash to avoid reorg-stale EMA 2026-04-10 10:34:33 +02:00
tracker_test.go eth/txtracker: fetch head block by hash to avoid reorg-stale EMA 2026-04-10 10:34:33 +02:00