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

Always count local CLTV delta in route finding (#3174)

Public commit record

What the developer wrote

Authored by Thomas HUET

73/100 · Adequate
Always count local CLTV delta in route finding (#3174)

When paying from our node, we don't pay the fee for the local channel but we still "pay" its CLTV delta.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This change fixes how Eclair counts time-lock delays when finding payment routes through the Lightning network. Previously, when calculating a route starting from the user's own node, the software ignored the delay on the first local channel. This could lead to choosing routes that look cheaper or faster but actually require longer lock-up times than expected, potentially causing payments to fail or funds to be locked longer than the user intended. The fix now always includes that first-channel delay in route calculations.

Recommended action

Review related route-finding and fee-accounting logic for similar special cases where local-channel parameters are skipped. Confirm that downstream payment construction uses the corrected total CLTV. No urgent deployment action is indicated beyond normal patch management.

Security signals we found

01

Route-finding cost accounting corrected for local CLTV delta

02

Special-case bypass removed that zeroed first-hop time-lock cost

03

Risk-cost formula now uses actual edge CLTV for local channel

04

Test scenario adjusted to assert local CLTV is included

Risk score

Why this scored 49/100

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