mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 21:26:42 +00:00
validate the blob tx at first to avoid unnecessary conversion
This commit is contained in:
parent
d05f5bc341
commit
409cfa557c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue