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

onion_message: fix handling of ONION_MESSAGE_LARGE_SIZE payload sizes for onion messages, process dummy hops regardless of EXPERIMENTAL_LN_FORWARD_PAYMENTS config option.

Public commit record

What the developer wrote

Authored by Sander van Grieken

73/100 · Adequate
onion_message: fix handling of ONION_MESSAGE_LARGE_SIZE payload sizes for onion messages,
process dummy hops regardless of EXPERIMENTAL_LN_FORWARD_PAYMENTS config option.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes two bugs in Electrum's experimental Lightning 'onion message' forwarding feature. First, it correctly handles larger onion message packet sizes, which previously could have caused processing errors. Second, it ensures 'dummy hops' (decoy routing steps used for privacy) are processed even when the separate 'forward payments' experimental option is turned off. Before the fix, turning off payment forwarding could accidentally break onion message routing through dummy hops.

Recommended action

Review whether the large-size handling bug could have caused parse failures or routing issues in production onion message use; consider whether the config-option coupling could have been exploited to deanonymize or disrupt onion message paths. No immediate critical action is indicated by the diff alone.

Security signals we found

01

Fixes incorrect handling of large onion message payload sizes

02

Fixes logic coupling between payment forwarding config and onion message dummy-hop processing

03

Refactors forwarding gate so onion messages are not dropped solely due to disabled payment forwarding

Risk score

Why this scored 46/100

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