txpool: log error for missing sidecar in blob transaction

This commit is contained in:
johnzhu0908 2025-10-24 17:26:08 +08:00
parent 0413af40f6
commit 9c6f6413fa

View file

@ -995,6 +995,10 @@ func (p *BlobPool) convertLegacySidecar(sender common.Address, hash common.Hash,
return false
}
sc := tx.BlobTxSidecar()
if sc == nil {
log.Error("Missing sidecar in blob transaction", "hash", hash, "id", id)
return false
}
if sc.Version >= types.BlobSidecarVersion1 {
log.Debug("Skipping conversion of blob tx", "hash", hash, "id", id)
return false