core/txpool/blobpool: add comments

This commit is contained in:
healthykim 2026-05-06 15:06:57 +02:00
parent c3ea9c67d7
commit a3f088edcf

View file

@ -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)