core: fix txpool off-by-one error (#21683)

This commit is contained in:
Martin Holst Swende 2020-10-09 11:23:46 +02:00 committed by Daniel Liu
parent 6935687790
commit a6d591b01b

View file

@ -966,6 +966,7 @@ func (pool *TxPool) addTxs(txs []*types.Transaction, local, sync bool) []error {
nilSlot++
}
errs[nilSlot] = err
nilSlot++
}
// Reorg the pool internals if needed and return
done := pool.requestPromoteExecutables(dirtyAddrs)