go-ethereum/eth/txtracker
Csaba Kiraly 7f1720b3dc eth/txtracker: compact FIFO order slice to prevent memory leak
order = order[1:] reslices without releasing the backing array.
After N total insertions the array retains N hashes (32 bytes each)
but only the last maxTracked are live. On a long-running node
processing ~100 txs/s this leaks ~275 MB/day.

Compact by copying to a fresh array when capacity exceeds 2×maxTracked.
2026-04-10 16:40:08 +02:00
..
tracker.go eth/txtracker: compact FIFO order slice to prevent memory leak 2026-04-10 16:40:08 +02:00
tracker_test.go eth: add LGPL copyright headers to new files 2026-04-10 12:18:56 +02:00