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

lightningd: unreserve UTXOs from withheld funding PSBT when dropping channel

Public commit record

What the developer wrote

Authored by Peter Neuroth

85/100 · Strong
lightningd: unreserve UTXOs from withheld funding PSBT when dropping channel

When a channel using a withheld funding PSBT is dropped, we need to
unreserve the UTXOs from the PSBT. Otherwise those funds will remain
blocked until the reservation expires, delaying their availability for
other transactions.

Changelog-Fixed: lightningd: unreserve UTXOs from withheld funding PSBT
on channel close.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
The short version

What changed, and why it matters

This fix ensures that when a user opens a 'zero-confirmation' channel whose funding transaction is deliberately withheld and then the channel is closed/aborted, any bitcoin inputs that had been set aside (reserved) for that funding transaction are released back to the wallet promptly. Before this fix, those coins could stay locked up until an automatic timeout expired, making them unavailable for other payments or channel opens.

Recommended action

No immediate security response required; this is a wallet-availability bug fix. Users running versions affected by withheld zero-confirmation channel opens should upgrade to avoid temporary UTXO lockups.

Security signals we found

01

Fixes a resource-availability / denial-of-service condition where wallet UTXOs remain unnecessarily reserved

02

Adds explicit unreserve logic for a previously unhandled edge case (withheld funding PSBT)

03

Includes a regression test asserting UTXO status after withheld close

Risk score

Why this scored 28/100

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