From a3f088edcfe3288cf684f8e7c38610950491d739 Mon Sep 17 00:00:00 2001 From: healthykim Date: Wed, 6 May 2026 15:06:57 +0200 Subject: [PATCH] core/txpool/blobpool: add comments --- core/txpool/blobpool/blobpool.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/txpool/blobpool/blobpool.go b/core/txpool/blobpool/blobpool.go index 01f8dec60a..bf5f53b9d5 100644 --- a/core/txpool/blobpool/blobpool.go +++ b/core/txpool/blobpool/blobpool.go @@ -1573,8 +1573,9 @@ func (p *BlobPool) Get(hash common.Hash) *types.Transaction { return ptx.ToTx() } -// GetRLP returns a RLP-encoded transaction for p2p messages, converted from -// the pool's internal type, if it is contained in the pool. +// GetRLP returns a RLP-encoded transaction for network if it is contained in the pool. +// It converts the pool's internal type to the RLP format used by the eth protocol: +// e.g. type_byte || [..., version, [blobs], [comms], [proofs]] func (p *BlobPool) GetRLP(hash common.Hash) []byte { data := p.getRLP(hash) rlp, err := encodeForNetwork(data)