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

peer+rpcserver: use new conf scaling for notifications

Public commit record

What the developer wrote

Authored by Olaoluwa Osuntokun

50/100 · Thin
peer+rpcserver: use new conf scaling for notifications
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This change adjusts how many Bitcoin block confirmations LND waits before telling users a Lightning channel is successfully closed. For cooperative closes, it now scales the wait based on the channel's size (larger channels wait more confirmations) instead of always using 1 confirmation. For force closes, it keeps 1 confirmation for user notifications because a separate internal safety mechanism handles the real security waiting. This is a defensive hardening improvement, not a fix for an active exploit.

Recommended action

Review lnwallet.CloseConfsForCapacity to confirm its scaling curve is appropriate for mainnet channel sizes and reorg risk. Ensure downstream consumers of ChannelCloseUpdate do not treat notification as final settlement. No urgent patch deployment is indicated; treat as routine hardening.

Security signals we found

01

Confirmation-depth scaling by channel capacity for cooperative closes

02

Removal of hardcoded 1-confirmation notification for cooperative closes

03

Explicit 1-confirmation retention for force-close RPC notifications with delegation to channel arbitrator

04

Defensive hardening against premature close-success reporting

Risk score

Why this scored 32/100

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