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

tests: test funds don't get stuck as reserved after `withdraw` fails due to broadcast rejection (e.g. feerate below mempoolminfee).

Public commit record

What the developer wrote

Authored by enaples

72/100 · Adequate
tests: test funds don't get stuck as reserved after `withdraw` fails due to broadcast rejection (e.g. feerate below mempoolminfee).
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Explains rationale or failure mode✓ Mentions testing or verification! No meaningful explanatory body
The short version

What changed, and why it matters

This commit only adds a new test case that demonstrates a known bug in Core Lightning's wallet handling. When a `withdraw` command fails because the Bitcoin node rejects the transaction broadcast (for example, the fee is too low), some funds can remain marked as 'reserved' even though they were never actually spent. The test documents the bug and includes a manual workaround using `unreserveinputs`. It does not fix the underlying issue, so user funds can appear stuck until manually unreserved.

Recommended action

Treat this as a bug report with a reproducer rather than a security patch. The project should fix the reservation cleanup logic so that `fundpsbt`'s reservation is released when `withdraw` fails due to broadcast rejection. Users who encounter stuck reserved funds can use the `unreserveinputs` workaround shown in the test until a fix is released.

Security signals we found

01

Funds can be marked reserved after a failed broadcast, making them temporarily unavailable for spending

02

Known bug is explicitly documented in test comments

03

No production code fix is included in the commit

04

Workaround requires manual RPC intervention (`unreserveinputs`)

05

Could affect wallet availability/DoS under low-fee conditions

Risk score

Why this scored 44/100

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