Skip to content

Commit

Permalink
core: fix txpool off-by-one error (#21683)
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Oct 9, 2020
1 parent 19a1c95 commit 706f5e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/tx_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 706f5e3

Please sign in to comment.