aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-05-30 15:14:00 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-05-30 15:14:00 +0800
commit342ec83d679674220c4d6a49b507ea30084ae051 (patch)
tree3adb7d143bc0d945a637cf517a283577b848d921 /core
parent38c7eb0f26eaa8df229d27e92f12e253313a6c8d (diff)
downloadgo-tangerine-342ec83d679674220c4d6a49b507ea30084ae051.tar
go-tangerine-342ec83d679674220c4d6a49b507ea30084ae051.tar.gz
go-tangerine-342ec83d679674220c4d6a49b507ea30084ae051.tar.bz2
go-tangerine-342ec83d679674220c4d6a49b507ea30084ae051.tar.lz
go-tangerine-342ec83d679674220c4d6a49b507ea30084ae051.tar.xz
go-tangerine-342ec83d679674220c4d6a49b507ea30084ae051.tar.zst
go-tangerine-342ec83d679674220c4d6a49b507ea30084ae051.zip
core: fix transaction event asynchronicity
Diffstat (limited to 'core')
-rw-r--r--core/tx_pool.go2
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)