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 GitHub
parent 19a1c95046
commit 706f5e3b98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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