diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-05-30 15:14:00 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-05-30 15:14:00 +0800 |
commit | 342ec83d679674220c4d6a49b507ea30084ae051 (patch) | |
tree | 3adb7d143bc0d945a637cf517a283577b848d921 | |
parent | 38c7eb0f26eaa8df229d27e92f12e253313a6c8d (diff) | |
download | dexon-342ec83d679674220c4d6a49b507ea30084ae051.tar.gz dexon-342ec83d679674220c4d6a49b507ea30084ae051.tar.zst dexon-342ec83d679674220c4d6a49b507ea30084ae051.zip |
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) |