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

askrene: consider fees during *explain failure*

Public commit record

What the developer wrote

Authored by Lagrang3

68/100 · Adequate
askrene: consider fees during *explain failure*

We would try to explain a failure by simply finding a path between
source and destination and then checking the constraints.
However, we did not add fees.

Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a bug in Core Lightning's 'askrene' plugin, which is used to explain why a Lightning Network payment failed. Previously, when explaining a failure, the plugin checked whether each channel along a route could carry the payment amount, but it ignored the fees that must also be carried by earlier channels. This could cause askrene to incorrectly report that a path should have worked, or to miss the real reason a payment failed. The fix calculates the rolling amount including fees from destination back to source, and uses that larger amount when checking channel capacity and limits.

Recommended action

Apply the patch. Operators relying on askrene failure explanations should upgrade so that reported failure reasons accurately reflect fee requirements. No immediate emergency response is indicated, as this is a diagnostic correctness fix rather than an active exploit.

Security signals we found

01

Incorrect failure diagnosis could mislead operators about why a payment failed

02

Fee omission could cause underestimation of required channel capacity

03

Potential fee overflow now explicitly handled

04

No direct funds loss or remote code execution path evident

Risk score

Why this scored 37/100

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