Skip to content

Commit

Permalink
core: fix txpool off-by-one error (ethereum#21683)
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman authored and unclezoro committed Jan 11, 2021
1 parent 0a64615 commit ad3ff64
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 @@ -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)
Expand Down

0 comments on commit ad3ff64

Please sign in to comment.