From 869ef55ef9e52de63e63c7a83c767a793311384f Mon Sep 17 00:00:00 2001 From: chris-belcher Date: Mon, 18 May 2020 11:45:45 +0100 Subject: [PATCH] Disable loading of fidelity bond wallets by Qt --- scripts/joinmarket-qt.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/joinmarket-qt.py b/scripts/joinmarket-qt.py index 6764f88..40bb521 100644 --- a/scripts/joinmarket-qt.py +++ b/scripts/joinmarket-qt.py @@ -76,7 +76,8 @@ from jmclient import load_program_config, get_network, update_persist_config,\ get_tumble_log, restart_wait, tumbler_filter_orders_callback,\ wallet_generate_recover_bip39, wallet_display, get_utxos_enabled_disabled,\ NO_ROUNDING, get_max_cj_fee_values, get_default_max_absolute_fee, \ - get_default_max_relative_fee, RetryableStorageError, add_base_options + get_default_max_relative_fee, RetryableStorageError, add_base_options, \ + FidelityBondMixin from qtsupport import ScheduleWizard, TumbleRestartWizard, config_tips,\ config_types, QtHandler, XStream, Buttons, OkButton, CancelButton,\ PasswordDialog, MyTreeWidget, JMQtMessageBox, BLUE_FG,\ @@ -1658,6 +1659,8 @@ class JMMainWindow(QMainWindow): return False # only used for GUI display on regtest: self.testwalletname = wallet.seed = str(firstarg) + if isinstance(wallet, FidelityBondMixin): + raise Exception("Fidelity bond wallets not supported by Qt") if 'listunspent_args' not in jm_single().config.options('POLICY'): jm_single().config.set('POLICY', 'listunspent_args', '[0]') assert wallet, "No wallet loaded"