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

graph: fix graph cache population for channels with both policies disabled

Public commit record

What the developer wrote

Authored by ziggie

73/100 · Adequate
graph: fix graph cache population for channels with both policies disabled

Fix a bug where channels with both policies disabled were not added to
the graph cache during startup. When a policy update later re-enabled
one of the directions, the update would succeed in the database but fail
to update the graph cache (since the channel structure was never added),
preventing the channel from being used for routing.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a bug in LND's routing graph cache. Previously, if a Lightning channel had both routing policies disabled when the node started up, the channel was never loaded into the in-memory routing cache. Later, if a policy update re-enabled one direction, the database would record the change but the cache would stay out of sync, so the channel could not actually be used for routing. The fix always loads the channel structure into the cache and only skips attaching the disabled policies, allowing later updates to enable it correctly.

Recommended action

Treat as a functional bug with availability impact rather than an exploitable security vulnerability. Users running LND nodes should upgrade to a release containing this fix to avoid channels becoming stuck unroutable after policy re-enabling. No immediate incident response is required.

Security signals we found

01

Routing cache/database inconsistency

02

Denial of routing availability for affected channels

03

Logic bug in graph cache population

04

No input validation or memory-safety issue evident

Risk score

Why this scored 59/100

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