core: fix transaction event asynchronicity (#16843)

This commit is contained in:
Daniel Liu 2024-05-07 23:17:55 +08:00
parent 88695caf8f
commit fb89a5406b

View file

@ -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)