mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +00:00
core/txpool: remove unused code
This commit is contained in:
parent
9a8e14e77e
commit
a8c362ee4d
1 changed files with 1 additions and 4 deletions
|
|
@ -1478,15 +1478,12 @@ func (p *BlobPool) AvailableBlobs(vhashes []common.Hash) int {
|
||||||
func (p *BlobPool) Add(txs []*types.Transaction, sync bool) []error {
|
func (p *BlobPool) Add(txs []*types.Transaction, sync bool) []error {
|
||||||
var (
|
var (
|
||||||
errs = make([]error, len(txs))
|
errs = make([]error, len(txs))
|
||||||
adds = make([]*types.Transaction, 0, len(txs))
|
|
||||||
)
|
)
|
||||||
for i, tx := range txs {
|
for i, tx := range txs {
|
||||||
if errs[i] = p.ValidateTxBasics(tx); errs[i] != nil {
|
if errs[i] = p.ValidateTxBasics(tx); errs[i] != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if errs[i] = p.add(tx); errs[i] == nil {
|
errs[i] = p.add(tx)
|
||||||
adds = append(adds, tx.WithoutBlobTxSidecar())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return errs
|
return errs
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue