Browse Source

scripts/sendpayment.py: fix send_payjoin call

add_frost_channel_encryption
zebra-lucky 1 month ago
parent
commit
f8abd64aee
  1. 13
      scripts/sendpayment.py

13
scripts/sendpayment.py

@ -388,12 +388,21 @@ async def main():
if bip78url:
# TODO sanity check wallet type is segwit
manager = parse_payjoin_setup(args[1], wallet_service, options.mixdepth)
reactor.callWhenRunning(send_payjoin, manager)
# JM is default, so must be switched off explicitly in this call:
start_reactor(dhost, dport, bip78=True, jm_coinjoin=False,
daemon=daemon, gui=True)
wait_seconds = 180
while wait_seconds > 0:
if not reactor.running:
await asyncio.sleep(1)
wait_seconds -= 1
continue
break
if reactor.running:
await send_payjoin(manager)
else:
raise Exception("Reactor is not running for long time")
return
else:
taker = Taker(wallet_service,
schedule,

Loading…
Cancel
Save