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

Release held htlcs on release_held_htlc

Public commit record

What the developer wrote

Authored by Valentine Wallace

68/100 · Adequate
Release held htlcs on release_held_htlc

As part of supporting sending payments as an often-offline sender, the sender's
always-online channel counterparty needs to hold onto the sender's HTLC until
they receive a release_held_htlc onion message from the often-offline
recipient.

Here we implement forwarding these held HTLCs upon receipt of the release
message from the recipient.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit adds logic to actually forward HTLCs (payment promises) that were being held when a 'release_held_htlc' onion message arrives. Previously the handler only supported one kind of release (outbound static-invoice payments); now it also releases intercepted/forwards held by an always-online counterparty on behalf of an often-offline sender. It is a feature completion/fix for the async/offline-sender payment flow, not a clearly advertised security bug fix.

Recommended action

Review as part of async-payments feature audit. Verify that ReleaseHeldHtlc onion messages are authenticated and replay-protected, and that removing an intercept_id cannot be abused to release an HTLC prematurely or twice. No immediate patch deployment required solely on the basis of this diff.

Security signals we found

01

Functional completion of held-HTLC release path

02

Adds state transition from held to forwarded for intercepted HTLCs

03

No explicit security framing or CVE references in commit

04

No input validation changes beyond existing context matching

05

Potential concern: release message could be replayed or forged if onion message authentication is weak, but diff does not show new auth checks

Risk score

Why this scored 41/100

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