diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-05-30 15:45:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-30 15:45:02 +0800 |
commit | ca34e8230e52805401cff05ca874bc3bc90296e8 (patch) | |
tree | 3adb7d143bc0d945a637cf517a283577b848d921 | |
parent | 38c7eb0f26eaa8df229d27e92f12e253313a6c8d (diff) | |
parent | 342ec83d679674220c4d6a49b507ea30084ae051 (diff) | |
download | go-tangerine-ca34e8230e52805401cff05ca874bc3bc90296e8.tar go-tangerine-ca34e8230e52805401cff05ca874bc3bc90296e8.tar.gz go-tangerine-ca34e8230e52805401cff05ca874bc3bc90296e8.tar.bz2 go-tangerine-ca34e8230e52805401cff05ca874bc3bc90296e8.tar.lz go-tangerine-ca34e8230e52805401cff05ca874bc3bc90296e8.tar.xz go-tangerine-ca34e8230e52805401cff05ca874bc3bc90296e8.tar.zst go-tangerine-ca34e8230e52805401cff05ca874bc3bc90296e8.zip |
Merge pull request #16843 from karalabe/txpool-fix-deadlock
core: fix transaction event asynchronicity
-rw-r--r-- | core/tx_pool.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/tx_pool.go b/core/tx_pool.go index 1c9516b1b..7393c8286 100644 --- a/core/tx_pool.go +++ b/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) |