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

lnworker.has_anchor_channels: return False if channel is closed but not redeemed yet

Public commit record

What the developer wrote

Authored by ThomasV

81/100 · Strong
lnworker.has_anchor_channels: return False if channel is closed but not redeemed yet

this fixes the following issue: user cannot spend max until channel is redeemed.
see https://x.com/AnyoneOReally1/status/1964352775245951291
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This is a small bug fix in Electrum's Lightning wallet. Previously, the wallet treated anchor-type channels as still 'active' even after they were closed, as long as their funds hadn't been fully swept. This caused the wallet to incorrectly reserve extra on-chain funds (preventing the user from spending their full balance) until the channel's closing transaction was fully redeemed. The fix changes the check so a closed channel is no longer considered active, allowing the user to spend their maximum available balance sooner. It is a usability/funds-availability issue, not a theft or remote-exploitation vulnerability.

Recommended action

Treat as a routine bug fix rather than a security incident. Users who experienced unavailable balances after closing anchor Lightning channels should benefit after upgrading. No immediate incident-response action is indicated because the issue is self-DoS/funds-availability only and requires the user's own closed channel state.

Security signals we found

01

Logic error in channel-state guard condition

02

Funds-availability / DoS-on-own-funds effect (user cannot spend max balance)

03

No remote attacker control path evident from diff

04

Fix references a public user report on X (not a vendor security advisory)

Risk score

Why this scored 20/100

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