From 41e966c2b5d088967a04b75daf3e1660d743e404 Mon Sep 17 00:00:00 2001 From: healthykim Date: Mon, 13 Jul 2026 15:33:39 +0200 Subject: [PATCH] core/txpool: move cell validation outside of lock --- core/txpool/blobpool/blobpool.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/txpool/blobpool/blobpool.go b/core/txpool/blobpool/blobpool.go index 2a2e1080b0..c013b7b1e3 100644 --- a/core/txpool/blobpool/blobpool.go +++ b/core/txpool/blobpool/blobpool.go @@ -1965,6 +1965,10 @@ func (p *BlobPool) Add(txs []*types.Transaction, sync bool) []error { errs[i] = err continue } + if err := txpool.ValidateCells(ptx.CellSidecar); err != nil { + errs[i] = err + continue + } errs[i] = p.AddPooledTx(ptx) } return errs @@ -2034,10 +2038,6 @@ func (p *BlobPool) addLocked(ptx *BlobTxForPool, checkGapped bool) (err error) { } return err } - //todo: validation happens twice for eth72 - if err := txpool.ValidateCells(ptx.CellSidecar); err != nil { - return err - } // If the address is not yet known, request exclusivity to track the account // only by this subpool until all transactions are evicted from, _ := types.Sender(p.signer, tx) // already validated above