Page MenuHomePhabricator

D15040.id.diff
No OneTemporary

D15040.id.diff

diff --git a/electrum/electrumabc_gui/qt/avalanche/proof_editor.py b/electrum/electrumabc_gui/qt/avalanche/proof_editor.py
--- a/electrum/electrumabc_gui/qt/avalanche/proof_editor.py
+++ b/electrum/electrumabc_gui/qt/avalanche/proof_editor.py
@@ -418,6 +418,16 @@
"""
unconfirmed_count = 0
stakes = []
+ if self.wallet.has_password() and self.pwd is None:
+ # We are here if the user cancelled the password dialog.
+ QtWidgets.QMessageBox.critical(
+ self,
+ _("Password required"),
+ f"Failed to add {len(utxos)} stakes to the proof because the "
+ f"decryption password for this wallet is unavailable.",
+ )
+ return
+
for utxo in utxos:
height = utxo["height"]
if height <= 0:

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 1, 10:05 (7 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187294
Default Alt Text
D15040.id.diff (854 B)

Event Timeline