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

gossipd: reset dying_channels array after compact.

Public commit record

What the developer wrote

Authored by Rusty Russell

65/100 · Adequate
gossipd: reset dying_channels array after compact.

Reported-by: @daywalker90
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This patch fixes a bug in Core Lightning's gossip daemon where, after compacting the network graph store, the list of 'dying' channels was not reset and the code that repopulates it was not hooked up. This could cause the node to lose track of channels that are being closed, potentially leading to incorrect routing decisions or stale channel state. The fix clears the old list and provides a callback so dying channels are reloaded from the newly compacted store.

Recommended action

Apply the patch. Monitor for any gossip-related routing anomalies or stale channel announcements after compaction on nodes that have not yet been patched.

Security signals we found

01

State desynchronization after store compaction

02

Missing callback registration causing incomplete metadata reload

03

Potential use of stale channel liveness data

Risk score

Why this scored 55/100

Our methodology →
Potential impact 18/30
Exploitability 10/25
Stealth signal 8/15
Affected reach 10/15
Confidence 6/10
Evidence quality 3/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.