This commit is contained in:
Ryan Schneider 2018-05-18 11:13:33 +00:00 committed by GitHub
commit 4a31d4e63c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -652,8 +652,8 @@ func (pool *TxPool) add(tx *types.Transaction, local bool) (bool, error) {
log.Trace("Pooled new executable transaction", "hash", hash, "from", from, "to", tx.To()) log.Trace("Pooled new executable transaction", "hash", hash, "from", from, "to", tx.To())
// We've directly injected a replacement transaction, notify subsystems // We've directly injected a replacement transaction, notify subsystems.
go pool.txFeed.Send(TxPreEvent{tx}) pool.txFeed.Send(TxPreEvent{tx})
return old != nil, nil return old != nil, nil
} }
@ -747,7 +747,7 @@ func (pool *TxPool) promoteTx(addr common.Address, hash common.Hash, tx *types.T
pool.beats[addr] = time.Now() pool.beats[addr] = time.Now()
pool.pendingState.SetNonce(addr, tx.Nonce()+1) pool.pendingState.SetNonce(addr, tx.Nonce()+1)
go pool.txFeed.Send(TxPreEvent{tx}) pool.txFeed.Send(TxPreEvent{tx})
} }
// AddLocal enqueues a single transaction into the pool if it is valid, marking // AddLocal enqueues a single transaction into the pool if it is valid, marking