go-ethereum/eth/protocols
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
..
eth core/txpool: add GetMetadata to transaction pool (#31433) 2025-04-02 15:47:56 +08:00
snap metrics, cmd/geth: change init-process of metrics (#30814) 2024-12-10 13:27:29 +01:00