go-ethereum/core/txpool/legacypool
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
..
legacypool.go core/txpool: add GetMetadata to transaction pool (#31433) 2025-04-02 15:47:56 +08:00
legacypool2_test.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
legacypool_test.go core/txpool/legacypool: reject gapped tx from delegated account (#31430) 2025-03-20 22:05:15 +01:00
list.go core/txpool: remove locals-tracking from txpools (#30559) 2025-02-04 17:23:01 +01:00
list_test.go core/txpool/legacypool: remove a redundant heap.Init (#28910) 2024-02-15 19:50:17 +01:00
noncer.go all: move main transaction pool into a subpool (#27463) 2023-06-16 15:29:40 +03:00