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

docs: release note for closed-channel tombstones on KV-SQL backends

Public commit record

What the developer wrote

Authored by ziggie

93/100 · Strong
docs: release note for closed-channel tombstones on KV-SQL backends

Document the tombstone close path that #10780 wires onto sqlite/postgres,
the operator-visible iteration-cost growth that comes from leaving closed
chanBuckets on disk, and the NumForwardingPackages divergence that the
preserved forwarding-package bucket produces in PendingChannels.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit only adds release-note documentation describing a previously merged code change (PR #10780). It explains that, on sqlite/postgres backends, closing a channel now leaves the old channel data on disk and instead marks the channel as closed by flipping an index entry. The note warns operators not to downgrade after closing channels, because older LND versions would see the leftover data and think the channel is still open. There is no code change here, only documentation, so it does not introduce a new security vulnerability by itself. The underlying design change could create operational confusion (channels appearing reopened after a downgrade), but that is a documented operational risk, not an exploitable weakness.

Recommended action

No code-level action is required for this documentation commit. Operators running sqlite/postgres backends should heed the downgrade warning and treat 0.21 as a one-way upgrade for databases where channels have been closed. Reviewers may want to verify that PR #10780 indeed updated all open-channel readers to check the outpointClosed marker, and that migration tooling will eventually reclaim the retained tombstone data. If evaluating security risk, focus on the operational downgrade scenario rather than a remote exploit.

Security signals we found

01

Operational downgrade hazard: closed channels may reappear as open if a node operator downgrades to a pre-0.21 release on sqlite/postgres

02

Data retention change: closed-channel state (chanBucket, revocation log, forwarding packages) remains on disk for the channel's lifetime on KV-SQL backends

03

Potential inconsistency in PendingChannels: preserved forwarding-package bucket causes NumForwardingPackages divergence

04

Performance/availability side effect documented: previous cascading delete could hold DB write-lock long enough to stall HTLC forwarding and trigger force-closes

Risk score

Why this scored 35/100

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