mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-16 04:56:36 +00:00
core/txpool/blobpool: silence GetRLP miss-log spam (#34965)
Avoids every legacy tx hash query hitting the blob pool on the path of BlobPool.GetRLP.
This commit is contained in:
parent
31bb680997
commit
6f6d006f74
1 changed files with 4 additions and 1 deletions
|
|
@ -1575,12 +1575,15 @@ func (p *BlobPool) Get(hash common.Hash) *types.Transaction {
|
|||
// e.g. type_byte || [..., version, [blobs], [comms], [proofs]]
|
||||
func (p *BlobPool) GetRLP(hash common.Hash) []byte {
|
||||
data := p.getRLP(hash)
|
||||
if len(data) == 0 {
|
||||
// Not in this pool, do not log.
|
||||
return nil
|
||||
}
|
||||
rlp, err := encodeForNetwork(data)
|
||||
if err != nil {
|
||||
log.Error("Failed to encode pooled tx into the network type", "hash", hash, "err", err)
|
||||
return nil
|
||||
}
|
||||
|
||||
return rlp
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue