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

lightningd: don't rebroadcast withheld channels' funding_psbt on restart.

Public commit record

What the developer wrote

Authored by Rusty Russell

65/100 · Adequate
lightningd: don't rebroadcast withheld channels' funding_psbt on restart.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This change stops Core Lightning from re-announcing the funding transaction for channels that are marked as 'withheld' when the node restarts. A withheld channel is one whose funding transaction should not be broadcast yet (for example, because it is waiting for a peer or some other condition). Re-broadcasting it could leak the channel's existence or funding details prematurely, or cause the transaction to be mined before the protocol is ready. The fix is a one-line guard that skips these channels during restart rebroadcast.

Recommended action

Apply the patch. Review whether any other restart-time rebroadcast paths (e.g., for RBF, splice, or dual-funded opens) also need to respect the withheld flag. Consider adding a regression test that verifies a withheld channel's funding PSBT is not re-broadcast after restart.

Security signals we found

01

Premature broadcast of a funding transaction

02

Leakage of channel funding details before protocol readiness

03

Violation of the 'withheld' channel invariant on restart

04

Small, targeted patch in channel opening/restart logic

Risk score

Why this scored 46/100

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