go-ethereum/core/txpool
Csaba Kiraly 4daf354b2c
core/txpool/blobpool: fix uint32 underflow in storage size diff
storageSizeDiff was a uint32. When replacing a transaction with a
smaller one, the subtraction (new - old) would underflow, and the
subsequent cast to uint64 would produce a huge value, making the
datacap check always trigger incorrectly.

Use int64 for the diff instead. When negative (pool shrinking), skip
the capacity check entirely. When positive, the cast to uint64 is
safe since we've confirmed it's positive.
2026-03-06 10:31:56 +01:00
..
blobpool core/txpool/blobpool: fix uint32 underflow in storage size diff 2026-03-06 10:31:56 +01:00
legacypool core/txpool/legacypool: clarify and fix non-executable tx heartbeat (#33704) 2026-01-29 10:53:55 +01:00
locals core/txpool: Initialize journal writer for tx tracker (#32921) 2025-10-21 15:41:38 +08:00
errors.go core/txpool: drop peers on invalid KZG proofs 2026-01-13 17:12:08 +01:00
reserver.go core/txpool: allow tx and authority regardless of admission order (#31373) 2025-04-09 19:11:24 -06:00
subpool.go eth/fetcher: add metadata validation in tx announcement (#33378) 2025-12-11 12:11:52 +08:00
txpool.go eth/fetcher: add metadata validation in tx announcement (#33378) 2025-12-11 12:11:52 +08:00
validation.go core/txpool: drop peers on invalid KZG proofs 2026-01-13 17:12:08 +01:00
validation_test.go core/txpool: add eip2681 check for incoming transactions (#32726) 2025-09-25 13:15:12 +02:00