What changed, and why it matters
This commit removes unused Python imports from two files: a Qt channel details dialog and a watchtower server plugin. It is a routine code cleanup with no functional changes and no security relevance.
Recommended action
No action required; this is a benign refactoring change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit deletes unused imports in electrum/gui/qt/channel_details.py and electrum/plugins/watchtower/server.py. No executable code, logic, APIs, or dependencies are changed. The diff is purely subtractive import cleanup.
Changed components
electrum/gui/qt/channel_details.pyelectrum/plugins/watchtower/server.pyInspect captured patch +4 / −15
diff --git a/electrum/gui/qt/channel_details.py b/electrum/gui/qt/channel_details.py
index 3369dd1..42da866 100644
--- a/electrum/gui/qt/channel_details.py
+++ b/electrum/gui/qt/channel_details.py
@@ -3,16 +3,12 @@ from typing import TYPE_CHECKING, Sequence
import PyQt6.QtGui as QtGui
import PyQt6.QtWidgets as QtWidgets
import PyQt6.QtCore as QtCore
-from PyQt6.QtWidgets import QLabel, QLineEdit, QHBoxLayout, QGridLayout
+from PyQt6.QtWidgets import QLabel, QHBoxLayout
-from electrum.util import EventListener, ShortID
+from electrum.util import ShortID
from electrum.i18n import _
-from electrum.util import format_time
-from electrum.lnutil import format_short_channel_id, LOCAL, REMOTE, UpdateAddHtlc, Direction
-from electrum.lnchannel import htlcsum, Channel, AbstractChannel, HTLCWithStatus
-from electrum.bolt11 import BOLT11Addr, decode_bolt11_invoice
-from electrum.bitcoin import COIN
-from electrum.wallet import Abstract_Wallet
+from electrum.lnutil import LOCAL, REMOTE, UpdateAddHtlc, Direction
+from electrum.lnchannel import Channel, AbstractChannel, HTLCWithStatus
from electrum.gui.common_qt.util import QtEventListener, qt_event_listener
from .util import Buttons, CloseButton, ShowQRLineEdit, MessageBoxMixin, WWLabel, VLine
diff --git a/electrum/plugins/watchtower/server.py b/electrum/plugins/watchtower/server.py
index 2f526f8..ddc0525 100644
--- a/electrum/plugins/watchtower/server.py
+++ b/electrum/plugins/watchtower/server.py
@@ -1,14 +1,7 @@
-import os
-import asyncio
-from collections import defaultdict
from typing import TYPE_CHECKING
from aiohttp import web
-from electrum.util import log_exceptions, ignore_exceptions
-from electrum.logging import Logger
-from electrum.util import EventListener
-from electrum.bolt11 import decode_bolt11_invoice
from electrum.daemon import AuthenticatedServer
Risk score
Our methodology →Why this scored 15/100
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.