diff --git a/core/txpool/txpool.go b/core/txpool/txpool.go index be7435247d..04218d73fc 100644 --- a/core/txpool/txpool.go +++ b/core/txpool/txpool.go @@ -334,8 +334,8 @@ func (p *TxPool) Add(txs []*types.Transaction, local bool, sync bool) []error { // Add the transactions split apart to the individual subpools and piece // back the errors into the original sort order. errsets := make([][]error, len(p.subpools)) - for i := 0; i < len(p.subpools); i++ { - errsets[i] = p.subpools[i].Add(txsets[i], local, sync) + for i, subpool := range p.subpools { + errsets[i] = subpool.Add(txsets[i], local, sync) } errs := make([]error, len(txs)) for i, split := range splits {