go-ethereum/core/txpool
Csaba Kiraly 61c8293a2d
core/txpool/blobpool: fix slotter closure consumption bug
billy.SlotSizeFn is a stateful closure that advances an internal
counter on each call. Storing it as p.slotter and calling
getSlotSize(p.slotter, ...) on every addLocked permanently mutates
the closure state. After the first call, all subsequent slot size
lookups start from the wrong position and return incorrect sizes.

Replace the slotter field with a factory function (newSlotter) that
creates a fresh slotter instance on each call to getSlotSize.

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2026-03-06 10:26:43 +01:00
..
blobpool core/txpool/blobpool: fix slotter closure consumption bug 2026-03-06 10:26:43 +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