1
0
Fork 0
forked from forks/go-ethereum
go-ethereum-modded-tocallarg/eth/protocols/eth
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
..
broadcast.go core/txpool: add GetMetadata to transaction pool (#31433) 2025-04-02 15:47:56 +08:00
discovery.go eth/protocols/eth: fix loading "eth" ENR key in dial filter (#31251) 2025-02-25 13:40:57 +01:00
dispatcher.go eth/protocols/eth: prevent hanging dispatch (#30918) 2025-01-06 16:31:53 +01:00
handler.go core/txpool: add GetMetadata to transaction pool (#31433) 2025-04-02 15:47:56 +08:00
handler_test.go core/txpool, eth: add GetRLP to transaction pool (#31307) 2025-03-19 14:20:50 +08:00
handlers.go core/txpool, eth: add GetRLP to transaction pool (#31307) 2025-03-19 14:20:50 +08:00
handshake.go all: nuke total difficulty (#30744) 2025-01-28 18:55:41 +01:00
handshake_test.go all: nuke total difficulty (#30744) 2025-01-28 18:55:41 +01:00
metrics.go metrics, cmd/geth: change init-process of metrics (#30814) 2024-12-10 13:27:29 +01:00
peer.go all: nuke total difficulty (#30744) 2025-01-28 18:55:41 +01:00
peer_test.go eth: implement eth/68 (#25980) 2022-10-31 16:23:26 +02:00
protocol.go eth/protocols/eth: remove Requests in block body (#30562) 2024-10-10 10:47:40 +02:00
protocol_test.go cmd/devp2p, eth: drop eth/66 (#28239) 2023-10-03 15:03:19 +03:00
tracker.go eth/protocols, prp/tracker: add support for req/rep rtt tracking (#22608) 2021-04-22 11:42:46 +03:00