AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 33 Bitcoin

Send BroadcastChannelAnnouncements via the broadcast queue

Public commit record

What the developer wrote

Authored by Matt Corallo

81/100 · Strong
Send BroadcastChannelAnnouncements via the broadcast queue

In 47a3e5c694321dac1a1d0f53e6dcb357282a79be we started asserting
that the per-peer message queue was empty when a peer connected to
ensure we don't have stale messages sitting around in memory. This
turned up an issue for `channel_announcement` messages generated by
block connections while a peer was disconnected.

Here we push those out through the broadcast message queue rather
than the per-peer message queue as there's no reason to tie them to
the individual peer anyway, fixing the assertions.

This should fix #4437

Written by Claude
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit fixes an internal consistency bug in LDK (a Lightning Network implementation in Rust). When a new block created a channel announcement while a peer was offline, the announcement was placed in that specific peer's queue. After a later change started checking that peer queues are empty on reconnect, this leftover message caused assertion failures (crashes in debug builds). The fix moves these broadcast messages into a global broadcast queue, where they belong, instead of a per-peer queue.

Recommended action

Review and merge if tests pass. The change is defensive and corrects message routing. Monitor issue #4437 for any follow-up reports. No immediate security advisory appears necessary, but the crash-on-reconnect behavior could be considered a low-severity DoS in debug builds.

Security signals we found

01

Fixes assertion failure / potential panic on peer reconnection (denial-of-service vector)

02

Moves broadcast messages from per-peer state to global broadcast queue, reducing stale-state risk

03

Changes behavior of message delivery ordering observable by tests

04

References GitHub issue #4437 as the bug being fixed

Risk score

Why this scored 33/100

Our methodology →
Potential impact 8/30
Exploitability 3/25
Stealth signal 5/15
Affected reach 6/15
Confidence 7/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.