core/txpool/blobpool: fix rlp decoding flaw during offload (#28027)

This commit is contained in:
lightclient 2023-08-30 00:28:03 -07:00 committed by GitHub
parent b8adb4cb0c
commit 41ee96fdfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -714,7 +714,7 @@ func (p *BlobPool) offload(addr common.Address, nonce uint64, id uint64, inclusi
return return
} }
var tx types.Transaction var tx types.Transaction
if err = rlp.DecodeBytes(data, tx); err != nil { if err = rlp.DecodeBytes(data, &tx); err != nil {
log.Error("Blobs corrupted for included transaction", "from", addr, "nonce", nonce, "id", id, "err", err) log.Error("Blobs corrupted for included transaction", "from", addr, "nonce", nonce, "id", id, "err", err)
return return
} }