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

ln: add trampoline LocalHTLCFailureReason variants per spec

Public commit record

What the developer wrote

Authored by Maurice

73/100 · Adequate
ln: add trampoline LocalHTLCFailureReason variants per spec

This commit adds three new local htlc failure error reasons:
`TemporaryTrampolineFailure`, `TrampolineFeeOrExpiryInsufficient`,
and `UnknownNextTrampoline` for trampoline payment forwarding failures.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit adds three new error-code labels used when a Lightning payment fails while being forwarded through a special routing feature called Trampoline payments. It is essentially a standards-compliance update that maps new internal reasons to the correct numeric failure codes and serialization IDs. There is no direct evidence this fixes an active security bug or vulnerability.

Recommended action

Treat as a routine protocol-compliance update. Review in the context of the broader Trampoline-payments feature branch to confirm the new failure reasons are emitted only in appropriate forwarding paths and that failure-data contents match the spec.

Security signals we found

01

New enum variants for protocol failure codes only

02

No changes to cryptographic validation, HTLC acceptance, or channel-state transitions

03

Debug assertions added for expected failure-data length

04

Serialization IDs added for persistence compatibility

Risk score

Why this scored 19/100

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