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

lightningd: db migration to clean up any pending payments where theres no htlc.

Public commit record

What the developer wrote

Authored by Rusty Russell

73/100 · Adequate
lightningd: db migration to clean up any pending payments where theres no htlc.

Changelog-Fixed: JSON-RPC: `listpays`/`listsendpays` erroneously left `pending` in xpay are cleaned up.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit adds a database cleanup routine that marks old pending payments as failed if no corresponding payment route (HTLC) actually exists. Previously, payments could be stuck showing as 'pending' forever in commands like listpays/listsendpays, even though nothing was really happening. The fix only corrects stale bookkeeping state; it does not create a way for an attacker to steal funds or force payments to fail.

Recommended action

Treat as a reliability/UX bug fix rather than an urgent security patch. Operators should upgrade normally and verify that stuck pending payments are resolved after restart. Review any automated tooling that may have acted on incorrect pending status.

Security signals we found

01

Database migration corrects inconsistent payment state

02

Payments incorrectly left pending could mislead users or downstream automation about real payment status

03

No cryptographic, network, or authorization weakness introduced by the patch

04

No evidence of remote exploitability in the diff

Risk score

Why this scored 30/100

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