core: fix txpool off-by-one error (#21683)

pull/21692/head
Martin Holst Swende 4 years ago committed by GitHub
parent 19a1c95046
commit 706f5e3b98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      core/tx_pool.go

@ -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)

Loading…
Cancel
Save