From 8ae41b1c77c597d3a09ee5b8387bba1950c48151 Mon Sep 17 00:00:00 2001 From: Adam Gibson Date: Sun, 5 Jan 2020 18:29:22 +0000 Subject: [PATCH] noblockchain error message for Qt --- scripts/joinmarket-qt.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/joinmarket-qt.py b/scripts/joinmarket-qt.py index 395e4bb..11af630 100644 --- a/scripts/joinmarket-qt.py +++ b/scripts/joinmarket-qt.py @@ -1813,6 +1813,15 @@ except Exception as e: ]) JMQtMessageBox(None, config_load_error, mbtype='crit', title='failed to load') exit(1) +# Qt does not currently support any functioning without a Core interface: +if jm_single().bc_interface is None: + blockchain_error = ''.join(["Joinmarket-Qt requires Bitcoin Core as a blockchain ", + "interface; change the setting of 'blockchain_source' ", + "in the joinmarket.cfg file to a value not equal to ", + "'no-blockchain'; see comments for details."]) + JMQtMessageBox(None, blockchain_error, mbtype='crit', + title='Invalid blockchain source') + exit(1) #refuse to load non-segwit wallet (needs extra work in wallet-utils). if not jm_single().config.get("POLICY", "segwit") == "true": wallet_load_error = ''.join(["Joinmarket-Qt only supports segwit based wallets, ",