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

Merge pull request #10888 from spesmilo/lnchannel_funding_height_downgrade

Public commit record

What the developer wrote

Authored by ThomasV

73/100 · Adequate
Merge pull request #10888 from spesmilo/lnchannel_funding_height_downgrade

lnchannel: do not remove funded channel once funding tx is confirmed
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This patch fixes a bug in Electrum's Lightning channel handling where a malicious or misbehaving server could trick the wallet into deleting a funded channel by claiming the funding transaction was no longer confirmed. The fix makes the wallet remember that a funding transaction was once mined and refuse to downgrade that status to 'unconfirmed,' preventing accidental loss of access to funds stored in the channel.

Recommended action

Users running Electrum with Lightning should upgrade to a version containing this commit. Reviewers should verify that _maybe_save_tx_height correctly handles all state transitions and that has_funding_timed_out no longer relies solely on current funding_height for funded channels.

Security signals we found

01

Fixes downgrade from confirmed to unconfirmed funding height

02

Prevents removal of funded Lightning channel via malicious/misbehaving server

03

Adds regression tests for lying-server funding-height downgrade scenario

04

Refactors height persistence to avoid unconditional deletion in unfunded state

Risk score

Why this scored 60/100

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