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

ln/refactor: pass minimum delta into check_incoming_htlc_cltv

Public commit record

What the developer wrote

Authored by Carla Kirk-Cohen

85/100 · Strong
ln/refactor: pass minimum delta into check_incoming_htlc_cltv

For trampoline payments, we don't want to enforce a minimum cltv delta
between our incoming and outer onion outgoing CLTV because we'll
calculate our delta from the inner trampoline onion's value. However,
we still want to check that we get at least the CLTV that the sending
node intended for us and we still want to validate our incoming value.
Refactor to allow setting a zero delta, for use for trampoline payments.
✓ Specific, 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 commit is a code refactor that prepares for future 'trampoline' Lightning payments. It changes an internal CLTV (timelock) check so the caller can specify a minimum time delta, instead of always using a hardcoded minimum. The commit itself does not enable trampoline payments or change live behavior; it only adds flexibility for a future feature. There is no direct evidence this fixes an active security bug.

Recommended action

No immediate action required. Treat as routine refactor. When the future trampoline feature is reviewed, ensure the zero-delta path does not weaken timelock protections or allow incoming HTLCs to expire too early relative to outgoing HTLCs.

Security signals we found

01

CLTV/timelock validation logic touched

02

Refactor enables future zero-delta path for trampoline payments

03

No change to current enforcement value at existing call sites

04

No vendor security disclosure or CVE referenced

Risk score

Why this scored 29/100

Our methodology →
Potential impact 5/30
Exploitability 5/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.