Merge pull request #16882 from karalabe/streaming-ecrecover

core: concurrent background transaction sender ecrecover
This commit is contained in:
Péter Szilágyi
2018-06-05 17:13:43 +03:00
committed by GitHub
3 changed files with 113 additions and 0 deletions

View File

@ -411,6 +411,7 @@ func (pool *TxPool) reset(oldHead, newHead *types.Header) {
// Inject any transactions discarded due to reorgs
log.Debug("Reinjecting stale transactions", "count", len(reinject))
senderCacher.recover(pool.signer, reinject)
pool.addTxsLocked(reinject, false)
// validate the pool of pending transactions, this will remove