core/txpool/blobpool: silence GetRLP miss-log spam (#34965)
Some checks are pending
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run
/ Keeper Build (push) Waiting to run
/ Windows Build (push) Waiting to run
/ Docker Image (push) Waiting to run

Avoids every legacy tx hash query hitting the blob pool on the path of
BlobPool.GetRLP.
This commit is contained in:
Sina M 2026-05-15 12:04:37 +02:00 committed by GitHub
parent 31bb680997
commit 6f6d006f74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1575,12 +1575,15 @@ func (p *BlobPool) Get(hash common.Hash) *types.Transaction {
// e.g. type_byte || [..., version, [blobs], [comms], [proofs]] // 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)
if len(data) == 0 {
// Not in this pool, do not log.
return nil
}
rlp, err := encodeForNetwork(data) rlp, err := encodeForNetwork(data)
if err != nil { if err != nil {
log.Error("Failed to encode pooled tx into the network type", "hash", hash, "err", err) log.Error("Failed to encode pooled tx into the network type", "hash", hash, "err", err)
return nil return nil
} }
return rlp return rlp
} }