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

lightningd: remove withheld flag when we see sendpsbt.

Public commit record

What the developer wrote

Authored by Rusty Russell

65/100 · Adequate
lightningd: remove withheld flag when we see sendpsbt.

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 fixes a bookkeeping bug in Core Lightning's wallet code. When a user calls the `sendpsbt` RPC to broadcast a funding transaction, the code now clears an internal 'withheld' flag on the relevant channel. Previously, this flag could remain stuck, which might prevent the channel from advancing normally after the PSBT (partially-signed Bitcoin transaction) was sent. The patch is small and only adjusts internal state tracking; it does not appear to introduce a direct remote exploit.

Recommended action

Apply the patch. It is a low-risk state-cleanup fix. If running a node that uses PSBT-based funding (especially dual-funded or RBF channels), ensure the node is updated so that channels do not remain stuck in a withheld state after `sendpsbt` is called. No immediate emergency response is warranted based on the diff alone.

Security signals we found

01

State-machine inconsistency: a channel flag was not cleared after the corresponding action (sending PSBT) was performed

02

Potential denial-of-service or stuck channel state due to stale flag

03

No input validation or memory-safety bug visible in the diff

Risk score

Why this scored 41/100

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