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

ln: store next trampoline amount and cltv in PendingHTLCRouting

Public commit record

What the developer wrote

Authored by Carla Kirk-Cohen

73/100 · Adequate
ln: store next trampoline amount and cltv in PendingHTLCRouting

When we're forwarding a trampoline payment, we need to remember the
amount and CLTV that the next trampoline is expecting.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit changes how Lightning trampoline payments are tracked internally. It stores the amount and expiry time that the next trampoline hop expects, so the node remembers them when forwarding a payment. The change looks like a correctness fix for trampoline routing rather than a typical security bug, but without the surrounding code it is hard to tell whether the missing fields previously caused fee or expiry mismatches that could be exploited.

Recommended action

Review the full trampoline forwarding path to confirm the newly stored values are used consistently in outbound HTLC construction and fee/CLTV validation. Verify serialization compatibility with existing persisted state. Treat as a routine correctness fix unless further review shows an exploitable inconsistency.

Security signals we found

01

Previously computed next-hop amount/CLTV values were intentionally discarded, suggesting a latent routing-state gap.

02

New fields are marked `required` in serialization, which can affect backward compatibility and persistence recovery.

03

Trampoline forwarding involves fee and timelock checks; missing expected values could theoretically lead to incorrect forwarding decisions.

04

No explicit security claim, CVE, or advisory is present in the commit or supplied references.

Risk score

Why this scored 29/100

Our methodology →
Potential impact 8/30
Exploitability 4/25
Stealth signal 3/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.