From fb89a5406b5d923d2bc00b72e34dc2c1ea22ac2c Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Tue, 7 May 2024 23:17:55 +0800 Subject: [PATCH] core: fix transaction event asynchronicity (#16843) --- core/tx_pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tx_pool.go b/core/tx_pool.go index 20f9ad8bcb..c8c1f0bb10 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -1110,7 +1110,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)