Skip to content

Commit

Permalink
core/tx_pool: fix off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
vdamle committed May 20, 2021
1 parent d20e9a2 commit dfccc9a
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 @@ -857,6 +857,7 @@ func (pool *TxPool) addTxs(txs []*types.Transaction, local, sync bool) []error {
nilSlot++
}
errs[nilSlot] = err
nilSlot++
}
log.Trace("Filtered transactions with errors", "count", len(errs))
// Reorg the pool internals if needed and return
Expand Down

0 comments on commit dfccc9a

Please sign in to comment.