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

dualopend: abort politely instead of erroring when we haven't signed

Public commit record

What the developer wrote

Authored by Sangbida Chaudhuri

73/100 · Adequate
dualopend: abort politely instead of erroring when we haven't signed

If lightningd asks us to fail before we've sent tx_signatures, a
clean tx_abort is the neighbourly thing to do (the spec says so too).
And once the abort completes, the channel is safe to forget.

Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit 4a232fca5a7f83f2b6dccd0062fd4b1be6cf1e3b)
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This change fixes how Core Lightning handles an early shutdown during a dual-funded channel opening. Previously, if the node was asked to fail before it had sent its transaction signatures, it would treat it as a fatal error and remember the channel unnecessarily. Now it sends a polite 'tx_abort' message and forgets the channel, which is what the Lightning protocol specification recommends. This avoids leaving half-open channels stuck in memory and reduces unnecessary error handling.

Recommended action

Apply the patch. It is a low-risk, spec-compliant cleanup fix. Monitor for any related issues in dual-funded channel open abort handling, particularly around state transitions after `tx_signatures` are sent.

Security signals we found

01

Protocol state machine correction for dual-funded channel open

02

Avoids unnecessary retention of channels in committed-but-unsigned state

03

Replaces fatal error path with spec-compliant tx_abort

04

Prevents potential resource exhaustion or stuck channels from repeated aborts

Risk score

Why this scored 37/100

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