Browse Source

bugfix: sendpayment invalid reference to userpcwallet

master
AdamISZ 7 years ago
parent
commit
697d8d7691
No known key found for this signature in database
GPG Key ID: B3AE09F1E9A3197A
  1. 12
      scripts/sendpayment.py

12
scripts/sendpayment.py

@ -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"

Loading…
Cancel
Save