Merge pull request #16843 from karalabe/txpool-fix-deadlock

core: fix transaction event asynchronicity
release/1.8
Péter Szilágyi 7 years ago committed by GitHub
commit ca34e8230e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/tx_pool.go

@ -962,7 +962,7 @@ func (pool *TxPool) promoteExecutables(accounts []common.Address) {
}
// Notify subsystem for new promoted transactions.
if len(promoted) > 0 {
pool.txFeed.Send(NewTxsEvent{promoted})
go pool.txFeed.Send(NewTxsEvent{promoted})
}
// If the pending limit is overflown, start equalizing allowances
pending := uint64(0)

Loading…
Cancel
Save