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

askrene: refine: remove flows with HTLC min faults

Public commit record

What the developer wrote

Authored by Lagrang3

65/100 · Adequate
askrene: refine: remove flows with HTLC min faults

Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This change improves the Lightning payment routing plugin 'askrene' by removing proposed payment routes that would violate each channel's minimum HTLC (payment) amount. Previously, the refinement step only checked maximum deliverable amounts and zero-amount flows, but could leave in routes where the delivered amount is below a channel's htlc_min. This patch adds a minimum-deliverable calculation and filters out such invalid flows. It is a correctness/hardening fix rather than a clear exploit, but invalid routes could cause payment failures or unexpected node behavior.

Recommended action

Review the new path_min_deliverable() arithmetic for off-by-one and fee-rounding issues, add the planned unit tests, and consider whether silently dropping flows could affect payment reliability or fee estimation. No immediate emergency response is indicated absent evidence of active exploitation.

Security signals we found

01

Routing correctness: invalid HTLC-min flows could be selected, leading to payment failure or protocol-level rejection

02

New arithmetic helper with abort()/assert() on amount overflow or invariant violation

03

No changelog entry, reducing visibility of the change

04

No CVE, advisory, or external disclosure referenced in commit

Risk score

Why this scored 35/100

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