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 fudongbai
parent 0a64615f1e
commit ad3ff6452d

View File

@ -814,6 +814,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)