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

Add hold_htlcs param to pay_route_internal

Public commit record

What the developer wrote

Authored by Valentine Wallace

76/100 · Adequate
Add hold_htlcs param to pay_route_internal

As part of supporting sending payments as an often-offline sender, the sender
needs to be able to set a flag in their update_add_htlc message indicating that
the HTLC should be held until receipt of a release_held_htlc onion message from
the often-offline payment recipient.

We don't yet ever set this flag, but lay the groundwork by including the
parameter in the pay_route method.

See-also <https://github.com/lightning/bolts/pull/989>
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit is a small internal code cleanup that adds a new parameter called hold_htlcs to a private payment-sending helper function. The parameter is always set to false everywhere it is used, so it does not change any actual behavior. It simply prepares the code for a future Lightning protocol feature that lets senders ask intermediate nodes to hold payments until the recipient comes back online. There is no security issue in this change itself.

Recommended action

No security action required. Treat as normal feature groundwork. Review the eventual follow-up commits that actually wire hold_htlcs_at_next_hop to update_add_htlc and release_held_htlc handling when they land.

Security signals we found

No strong security signals were identified.

Risk score

Why this scored 13/100

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