go-ethereum/core/txpool
minh-bq ee30681a8d
core/txpool: add GetMetadata to transaction pool (#31433)
This is an alternative to #31309

With eth/68, transaction announcement must have transaction type and
size. So in announceTransactions, we need to query the transaction from
transaction pool with its hash. This creates overhead in case of blob
transaction which needs to load data from billy and RLP decode. This
commit creates a lightweight lookup from transaction hash to transaction
size and a function GetMetadata to query transaction type and
transaction size given the transaction hash.

---------

Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2025-04-02 15:47:56 +08:00
..
blobpool core/txpool: add GetMetadata to transaction pool (#31433) 2025-04-02 15:47:56 +08:00
legacypool core/txpool: add GetMetadata to transaction pool (#31433) 2025-04-02 15:47:56 +08:00
locals core/txpool: fix nonce assignment in local tracker (#31496) 2025-03-28 12:32:24 +01:00
errors.go core/txpool: move setcode tx validation into legacyPool (#31209) 2025-02-24 14:17:21 -07:00
subpool.go core/txpool: add GetMetadata to transaction pool (#31433) 2025-04-02 15:47:56 +08:00
txpool.go core/txpool: add GetMetadata to transaction pool (#31433) 2025-04-02 15:47:56 +08:00
validation.go eth: check blob transaction validity on the peer goroutine when received (#31219) 2025-03-01 14:10:38 +01:00