mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-05 22:48:36 +00:00
core/txpool/blobpool: add comments
This commit is contained in:
parent
c3ea9c67d7
commit
a3f088edcf
1 changed files with 3 additions and 2 deletions
|
|
@ -1573,8 +1573,9 @@ func (p *BlobPool) Get(hash common.Hash) *types.Transaction {
|
||||||
return ptx.ToTx()
|
return ptx.ToTx()
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetRLP returns a RLP-encoded transaction for p2p messages, converted from
|
// GetRLP returns a RLP-encoded transaction for network if it is contained in the pool.
|
||||||
// the pool's internal type, 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 {
|
func (p *BlobPool) GetRLP(hash common.Hash) []byte {
|
||||||
data := p.getRLP(hash)
|
data := p.getRLP(hash)
|
||||||
rlp, err := encodeForNetwork(data)
|
rlp, err := encodeForNetwork(data)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue