mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-26 17:59:29 +00:00
core/txpool: add comments on GetRLP
This commit is contained in:
parent
e3f25c2fc9
commit
c3ea9c67d7
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue