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

xpay: actually tell askrene when a payment succeeded.

Public commit record

What the developer wrote

Authored by Rusty Russell

65/100 · Adequate
xpay: actually tell askrene when a payment succeeded.

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 commit fixes a bookkeeping bug in Core Lightning's xpay plugin. Previously, when a payment succeeded, xpay did not tell the askrene routing-helper that the route worked. As a result, askrene kept stale or overly pessimistic ideas about which channels could carry payments, which could make future payments fail unnecessarily or take worse routes. The patch adds the missing 'payment succeeded' notification for every non-local hop. It is a reliability/performance fix, not a direct theft-of-funds vulnerability.

Recommended action

Treat as a normal bug-fix patch. Reviewers should confirm that send_payment_req cannot be called with a NULL req and that the loop correctly skips the local hop. No urgent security response is indicated, but operators relying on xpay should upgrade to benefit from improved routing accuracy.

Security signals we found

01

Missing success feedback to routing layer can degrade payment reliability

02

Stale negative impressions may bias future path selection toward worse or failing routes

03

No direct funds-loss primitive is introduced or fixed

04

Change is purely additive notification logic in success path

Risk score

Why this scored 24/100

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