core: concurrent background transaction sender ecrecover

This commit is contained in:
Péter Szilágyi
2018-06-04 14:09:16 +03:00
parent 400332b99d
commit 2ab24a2a8f
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