We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73bbd26 commit 131e248Copy full SHA for 131e248
1 file changed
p2p/conns.go
@@ -192,11 +192,14 @@ func (c *Conns) BroadcastTxHashes(hashes []common.Hash) int {
192
193
count := 0
194
for _, cn := range peers {
195
+ // Non-blocking send, drop if queue full (matches Bor behavior)
196
select {
197
case cn.txAnnounce <- hashes:
198
count++
199
case <-cn.closeCh:
200
// Peer closing, skip
201
+ default:
202
+ // Channel full, skip to avoid goroutine leak
203
}
204
205
0 commit comments