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

Use HTLC CLTV instead of onion CLTV values for payment claim timer

Public commit record

What the developer wrote

Authored by Matt Corallo

73/100 · Adequate
Use HTLC CLTV instead of onion CLTV values for payment claim timer

When we receive an HTLC as a part of a claim, we validate that the
CLTV on the HTLC is >= the CLTV that the sender requested we
receive, but then we use the CLTV value that the sender requested
we receive as the deadline to claim the HTLC anyway.

This isn't generally all that interesting (they're always the same
unless the previous-hop node gave us "free CLTV"), but for
trampoline payments where we're both a trampoline hop and the
blinded intro point and the recipient, it means we end up allowing
ourselves less claim time than we actually have.

Instead, here, we just use the actual HTLC CLTV deadline.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a subtle timing bug in how Lightning payment deadlines are recorded. When a node receives a payment, it was writing down the deadline the sender asked it to honor rather than the actual deadline attached to the incoming payment. Normally those two numbers are the same, but in a special 'trampoline' routing case a node can end up giving itself less time than it really has to claim funds. The fix makes the node use the real deadline from the incoming payment instead.

Recommended action

Review and merge; backport to maintained release branches if the trampoline/blinded-path code is present. Monitor for any related claim-timeout failures in production. No urgent incident response indicated.

Security signals we found

01

Timing/deadline mismatch between validated HTLC CLTV and recorded claim timer

02

Affects trampoline + blinded-path recipient edge case

03

Could reduce available time to claim an HTLC, increasing risk of timeout/loss if chain congestion or disputes arise

04

No explicit memory safety, cryptographic, or remote-crash signal

Risk score

Why this scored 44/100

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