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

askrene: refine: disable HTLC min violations

Public commit record

What the developer wrote

Authored by Lagrang3

80/100 · Strong
askrene: refine: disable HTLC min violations

Disable channels with HTLC min violations so that we don't hit them
twice when computing routes.

Changelog-None

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

What changed, and why it matters

This change fixes a routing bug in Core Lightning's experimental 'askrene' plugin. Previously, when the plugin planned a payment route, it could repeatedly try to use channels whose minimum payment size (htlc_min) was bigger than the amount being sent, wasting computation and potentially producing bad routes. The patch makes the plugin remember and temporarily disable those channels during the same routing query, so it doesn't hit the same constraint twice.

Recommended action

Treat as a routine bug-fix patch. Reviewers should verify that disabled_chans is correctly sized for both directions (2 * max_chan_idx) and that bitmap indices are never out of bounds, especially when localmods add channels. No urgent security deployment is indicated.

Security signals we found

01

Logic bug in route computation that could cause repeated htlc_min violations

02

Potential denial-of-service vector: wasted CPU cycles / path-finding loops

03

No memory safety, cryptographic, or remote-code-execution signals in diff

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.