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

lnrouter: liquidity hints: add extra penalty if amt near cannot_send

Public commit record

What the developer wrote

Authored by SomberNight

73/100 · Adequate
lnrouter: liquidity hints: add extra penalty if amt near cannot_send

We guide LNPathFinder away from channels where there is a known cannot_send amount just barely above the HTLC value.

Somewhat follows 6a97e74ce82b9e2055b1ccf31f43288c9becfa02, as before that commit, we were often (unintentionally) blacklisting chans with liquidity failures but now we allow retrying them.
Without current change, the liqudity-based penalty would disallow sending an HTLC over the the known "cannot_send" but it would basically not distinguish between 0.999*cannot_send and 0. Instead, just as a completely naive bandaid, I propose penalising HTLC values greater than 80% of the known cannot_send.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit tweaks how Electrum's Lightning Network payment routing avoids channels where a previous payment attempt already failed. Previously, the router would treat a channel almost at its known failure limit almost the same as a channel far below it. The change adds an extra routing penalty when a payment amount gets within 80% of a previously seen 'cannot send' limit, steering future payments away from likely-stuck channels. It is a hardening/robustness improvement, not a fix for a clear exploitable vulnerability, and it also adds two safety checks (assertions) on internal counters.

Recommended action

Treat as a routine hardening patch. Reviewers may want to confirm the 80% threshold and factor=2 multiplier are reasonable, and that the new assertions cannot be triggered by corrupted state. No urgent security response is indicated by the available evidence.

Security signals we found

01

Routing/liquidity-hint logic changed to penalize amounts close to a known cannot_send threshold

02

Adds defensive assertions on num_inflight_htlcs type and range

03

Self-described by author as a 'completely naive bandaid' / heuristic improvement

04

No mention of CVE, exploit, bug bounty, or independent report in commit or supplied references

Risk score

Why this scored 28/100

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