validate the blob tx at first to avoid unnecessary conversion

This commit is contained in:
maskpp 2025-09-02 23:02:48 +08:00
parent d05f5bc341
commit 409cfa557c

View file

@ -1413,7 +1413,7 @@ func (p *BlobPool) convertSidecar(txs []*types.Transaction) ([]*types.Transactio
}
sidecar := tx.BlobTxSidecar()
if tx.BlobTxSidecar().Version == types.BlobSidecarVersion0 {
if sidecar.Version == types.BlobSidecarVersion0 {
if err := sidecar.ToV1(); err != nil {
errs = append(errs, err)
continue