From 6f90e3042483c4a447c024083791216e78bb2f64 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Wed, 29 Apr 2020 23:20:13 +0300 Subject: [PATCH 1/2] Fix "Show seed" in Qt for wallets with mnemonic extension --- scripts/joinmarket-qt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/joinmarket-qt.py b/scripts/joinmarket-qt.py index a3bea2b..03af8e5 100644 --- a/scripts/joinmarket-qt.py +++ b/scripts/joinmarket-qt.py @@ -1773,7 +1773,7 @@ class JMMainWindow(QMainWindow): mb.setText("
".join(seed_recovery_warning)) text = "" + words + "" if mnemonic_extension: - text += "

Seed extension: " + mnemonic_extension + "" + text += "

Seed extension: " + mnemonic_extension.decode('utf-8') + "" mb.setInformativeText(text) mb.setStandardButtons(QMessageBox.Ok) ret = mb.exec_() From 49ea4e44bf5ff87cd5df48abb49e81bf6fcc04ee Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Wed, 29 Apr 2020 23:28:37 +0300 Subject: [PATCH 2/2] Correct display of wallet mnemonic extension in cli --- jmclient/jmclient/wallet_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jmclient/jmclient/wallet_utils.py b/jmclient/jmclient/wallet_utils.py index f2b2f55..a0cb956 100644 --- a/jmclient/jmclient/wallet_utils.py +++ b/jmclient/jmclient/wallet_utils.py @@ -872,7 +872,7 @@ def wallet_showseed(wallet): seed, extension = wallet.get_mnemonic_words() text = "Wallet mnemonic recovery phrase:\n\n{}\n".format(seed) if extension: - text += "\nWallet mnemonic extension: {}\n".format(extension) + text += "\nWallet mnemonic extension: {}\n".format(extension.decode('utf-8')) return text