Unverified Commit ca34e823 authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub

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

core: fix transaction event asynchronicity
parents 38c7eb0f 342ec83d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment