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

lnwatcher: remove rearly return that breaks accounting_addresses

Public commit record

What the developer wrote

Authored by ThomasV

65/100 · Adequate
lnwatcher: remove rearly return that breaks accounting_addresses

This reverts 6ffaa55.
Also, in regtests, add a check that fails if accounting_addresses are broken.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit fixes a bug in Electrum's Lightning watchtower code where an early exit was preventing the wallet from properly tracking certain closing transactions. The fix removes an unnecessary 'return early' check so that the wallet continues to process and account for these transactions. A new regression test checks that the closing transaction appears in the user's on-chain history even when it doesn't directly involve the user's wallet addresses. This is primarily an accounting/visibility bug, not a direct theft-of-funds vulnerability.

Recommended action

Treat as a routine bug-fix commit. Reviewers should verify that removing the early return does not reintroduce the original problem that 6ffaa55 was trying to solve, and that the new regression test reliably catches the accounting_addresses issue.

Security signals we found

01

Fixes a logic bug that breaks transaction accounting/visibility for Lightning channel closes

02

Adds regression test to prevent reintroduction of broken accounting_addresses behavior

03

Change is a revert of prior commit 6ffaa55

04

No cryptographic, network, or input-validation changes observed

Risk score

Why this scored 29/100

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