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

lnworker: don't connect to onion peers if no proxy

Public commit record

What the developer wrote

Authored by f321x

73/100 · Adequate
lnworker: don't connect to onion peers if no proxy

When gossip is enabled we waste a lot of time trying to connect
to onion peers if we don't have a proxy enabled. We should just skip
them and try to connect to clearnet peers instead.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit changes Electrum's Lightning networking code so that, when no Tor/proxy is enabled, it simply skips over '.onion' peer addresses instead of trying to connect to them. The goal is to avoid wasting connection attempts on addresses that cannot be reached without a proxy. It is a performance and reliability improvement, not a fix for an exploitable security vulnerability.

Recommended action

No urgent security action required. Treat as a normal reliability/performance improvement. Reviewers may want to confirm that the new 'is_onion()' check correctly handles only v3 onion suffixes and does not accidentally filter other address types.

Security signals we found

01

Behavioral hardening: avoids futile outbound connection attempts to unreachable onion services when no proxy is configured

02

No memory-safety, cryptographic, authentication, or authorization changes

03

No input parsing of untrusted data beyond existing LNPeerAddr validation

04

No CVE, advisory, or vendor security disclosure referenced in commit

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.