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

contractcourt: track close confirmation height in chain watcher

Public commit record

What the developer wrote

Authored by ziggie

73/100 · Adequate
contractcourt: track close confirmation height in chain watcher

Update the chain watcher to set and reset the CloseConfirmationHeight
field when monitoring a channel close. When a spend is detected, we
record the spending height so users can see remaining confirmations.
When a reorg removes the close tx from the chain, we reset the height
to 0 to reflect that the transaction is no longer confirmed.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit improves how LND records the block height at which a channel-closing transaction is confirmed. It stores the confirmation height when a close is detected and clears it if a blockchain reorganization removes the transaction. This is a bookkeeping/UI improvement rather than a fix for a known security vulnerability.

Recommended action

Treat as a routine reliability/observability improvement. No urgent security action required. Reviewers may want to confirm that MarkCloseConfirmationHeight and ResetCloseConfirmationHeight handle database errors safely and that the height is re-recorded correctly after a reorg.

Security signals we found

01

Reorg handling added for close confirmation height

02

State consistency improvement between chain watcher and channel state

03

No evidence of vulnerability disclosure or exploitability in diff

Risk score

Why this scored 22/100

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