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

qt: disable Submarine Payment tab if not swap_manager

Public commit record

What the developer wrote

Authored by f321x

65/100 · Adequate
qt: disable Submarine Payment tab if not swap_manager

Disable the `Submarine Payments` tab if the swap_manager is None (the
wallet has no lightning support).
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit is a small hardening change in Electrum's Qt wallet interface. It hides the 'Submarine Payment' tab when the wallet does not have Lightning support (swap_manager is missing). Without this guard, the tab could be shown in a state where the underlying swap service is unavailable, which might lead to a confusing or broken user experience rather than a direct theft-of-funds bug.

Recommended action

No urgent action. Treat as routine hardening. If submarine payments are an experimental feature, ensure the feature flag and backend availability checks are consistently applied across all entry points.

Security signals we found

01

UI state guard added to prevent use of an uninitialized/None backend service

02

Feature flag gated behind additional capability check

03

Defensive null check for swap_manager

Risk score

Why this scored 16/100

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