core/txpool: remove unused code

This commit is contained in:
cuiweixie 2026-01-23 21:36:02 +08:00
parent 9a8e14e77e
commit a8c362ee4d

View file

@ -1478,15 +1478,12 @@ func (p *BlobPool) AvailableBlobs(vhashes []common.Hash) int {
func (p *BlobPool) Add(txs []*types.Transaction, sync bool) []error {
var (
errs = make([]error, len(txs))
adds = make([]*types.Transaction, 0, len(txs))
)
for i, tx := range txs {
if errs[i] = p.ValidateTxBasics(tx); errs[i] != nil {
continue
}
if errs[i] = p.add(tx); errs[i] == nil {
adds = append(adds, tx.WithoutBlobTxSidecar())
}
errs[i] = p.add(tx)
}
return errs
}