Skip to content

Commit ca34e82

Browse files
authored
Merge pull request #16843 from karalabe/txpool-fix-deadlock
core: fix transaction event asynchronicity
2 parents 38c7eb0 + 342ec83 commit ca34e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/tx_pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ func (pool *TxPool) promoteExecutables(accounts []common.Address) {
962962
}
963963
// Notify subsystem for new promoted transactions.
964964
if len(promoted) > 0 {
965-
pool.txFeed.Send(NewTxsEvent{promoted})
965+
go pool.txFeed.Send(NewTxsEvent{promoted})
966966
}
967967
// If the pending limit is overflown, start equalizing allowances
968968
pending := uint64(0)

0 commit comments

Comments
 (0)