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

onion_message: add invoice buffer to payinfo cltv delta

Public commit record

What the developer wrote

Authored by f321x

85/100 · Strong
onion_message: add invoice buffer to payinfo cltv delta

Add the 3 block invoice cltv delta buffer to the blinded payinfo's
cltv_expiry_delta to prevent issues where the sender sets the expiry
to exactly local_height + cltv_expiry_delta and blocks get mined
during forwarding.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
The short version

What changed, and why it matters

This commit fixes a small timing buffer in Electrum's Lightning blinded-path payments. When Electrum advertised a hidden payment route, it told senders exactly how many extra blocks to reserve for safety. The problem is that new blocks can be mined while a payment is still traveling through the network. If the advertised safety margin was too tight, a payment could arrive with an expiry that is technically too close to the current block height, causing the payment to be rejected or stuck. The fix adds a 3-block buffer to the advertised safety margin so that normal mining delays don't cause failures.

Recommended action

Apply the patch. Users running Electrum Lightning nodes that create or advertise blinded payment paths should upgrade to avoid payment failures caused by tight CLTV expiry deltas. No immediate emergency response is indicated; this is a robustness fix rather than an active exploit.

Security signals we found

01

Timing/race condition in payment path expiry

02

Blinded path payinfo TLV under-reports required CLTV headroom

03

Potential payment failure or forced retry due to tight expiry delta

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.