mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 07:37:20 +00:00
core/txpool/blobpool: remove unused adds slice in Add() (#33887)
This commit is contained in:
parent
59ad40e562
commit
01083736c8
1 changed files with 2 additions and 7 deletions
|
|
@ -1476,17 +1476,12 @@ func (p *BlobPool) AvailableBlobs(vhashes []common.Hash) int {
|
|||
// Add inserts a set of blob transactions into the pool if they pass validation (both
|
||||
// consensus validity and pool restrictions).
|
||||
func (p *BlobPool) Add(txs []*types.Transaction, sync bool) []error {
|
||||
var (
|
||||
errs = make([]error, len(txs))
|
||||
adds = make([]*types.Transaction, 0, len(txs))
|
||||
)
|
||||
errs := make([]error, 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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue