core/txpool: add comments on GetRLP

This commit is contained in:
healthykim 2026-05-06 10:33:32 +02:00
parent e3f25c2fc9
commit c3ea9c67d7

View file

@ -1573,7 +1573,8 @@ func (p *BlobPool) Get(hash common.Hash) *types.Transaction {
return ptx.ToTx()
}
// GetRLP returns a RLP-encoded transaction for network if it is contained in the pool.
// GetRLP returns a RLP-encoded transaction for p2p messages, converted from
// the pool's internal type, if it is contained in the pool.
func (p *BlobPool) GetRLP(hash common.Hash) []byte {
data := p.getRLP(hash)
rlp, err := encodeForNetwork(data)