qml: qetxdetails: update mempool depth on fee histogram
What changed, and why it matters
This commit adds a small UI improvement to Electrum's mobile/QML interface. When the Bitcoin network's fee histogram changes (showing how busy the mempool is), the transaction details screen now refreshes so the displayed mempool depth stays current. There is no security issue here.
No security action needed. Treat as a normal UI fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch registers a new Qt event listener, on_event_fee_histogram, in electrum/gui/qml/qetxdetails.py. When a fee_histogram event fires, it checks that a wallet and transaction are loaded, then calls self.update() to refresh the QML transaction details view. This is purely a UI synchronization change with no cryptographic, network, or privilege-related modifications.
Changed components
electrum/gui/qml/qetxdetails.pyInspect captured patch +6 / −0
diff --git a/electrum/gui/qml/qetxdetails.py b/electrum/gui/qml/qetxdetails.py
index 1cc469f..0952258 100644
--- a/electrum/gui/qml/qetxdetails.py
+++ b/electrum/gui/qml/qetxdetails.py
@@ -95,6 +95,12 @@ class QETxDetails(QObject, QtEventListener):
self.update()
self.txRemoved.emit()
+ @qt_event_listener
+ def on_event_fee_histogram(self, histogram):
+ if not self._wallet or not self._tx:
+ return
+ self.update()
+
walletChanged = pyqtSignal()
@pyqtProperty(QEWallet, notify=walletChanged)
def wallet(self):
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.