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

fix: self payment in lnd (#4241)

Public commit record

What the developer wrote

Authored by Vlad Stan

65/100 · Adequate
fix: self payment in lnd (#4241)
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a bug where LNbits, when connected to an LND Lightning node, would leave a payment stuck in 'pending' status if LND rejected the payment because it was a self-payment (paying your own node). The fix tells LNbits to recognize LND's 'self-payments not allowed' message as a definite pre-dispatch failure, so the payment is correctly marked as failed and the user's balance is restored instead of being frozen.

Recommended action

Review whether other LND error messages (and other wallet backends) have similar pre-dispatch failure strings that are not yet classified as failed. Consider backporting this fix if prior releases are affected, since pending-balance bugs can degrade availability of funds.

Security signals we found

01

Fixes a state-handling bug that could leave user funds locked in a pending payment

02

Adds regression tests for the specific failure mode

03

Targets pre-dispatch error classification for LND self-payment rejection

Risk score

Why this scored 60/100

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