bugfix: sendpayment invalid reference to userpcwallet

This commit is contained in:
AdamISZ 2018-10-28 17:28:59 +01:00
parent 99690bd5f7
commit 697d8d7691
No known key found for this signature in database
GPG key ID: B3AE09F1E9A3197A

View file

@ -114,14 +114,12 @@ def main():
log.debug('starting sendpayment')
if not options.userpcwallet:
max_mix_depth = max([mixdepth, options.amtmixdepths - 1])
max_mix_depth = max([mixdepth, options.amtmixdepths - 1])
wallet_path = get_wallet_path(wallet_name, None)
wallet = open_test_wallet_maybe(
wallet_path, wallet_name, max_mix_depth, gap_limit=options.gaplimit)
wallet_path = get_wallet_path(wallet_name, None)
wallet = open_test_wallet_maybe(
wallet_path, wallet_name, max_mix_depth, gap_limit=options.gaplimit)
else:
raise NotImplementedError("Using non-joinmarket wallet is not supported.")
if jm_single().config.get("BLOCKCHAIN",
"blockchain_source") == "electrum-server" and options.makercount != 0:
jm_single().bc_interface.synctype = "with-script"