go-ethereum/core/txpool/legacypool
Daniel Liu 3817df2f0d core/txpool/legacypool: fix replacement totalcost overflow ordering
list.Add previously added the new transaction cost to totalcost before subtracting the replaced transaction cost.

That ordering can reject valid replacements when the intermediate sum overflows uint256, even though the post-replacement total would be in range.

Compute totals from a post-replacement base (subtract old cost first, then AddOverflow the new cost) and add a regression test covering this edge case.
2026-03-11 02:06:27 +08:00
..
legacypool.go core/txpool/legacypool: reduce unnecessary allocations during add (#33701) 2026-02-04 04:50:19 +01:00
legacypool2_test.go eth: add tx to locals only if it has a chance of acceptance (#31618) 2025-04-17 21:27:48 +02:00
legacypool_test.go core/txpool/legacypool: move queue out of main txpool (#32270) 2025-10-13 19:07:36 +02:00
list.go core/txpool/legacypool: fix replacement totalcost overflow ordering 2026-03-11 02:06:27 +08:00
list_test.go core/txpool/legacypool: fix replacement totalcost overflow ordering 2026-03-11 02:06:27 +08:00
noncer.go all: move main transaction pool into a subpool (#27463) 2023-06-16 15:29:40 +03:00
queue.go core/txpool/legacypool: clarify and fix non-executable tx heartbeat (#33704) 2026-01-29 10:53:55 +01:00