Browse Source

lnpay: save invoice

master
ThomasV 5 years ago
parent
commit
a5a5048d53
  1. 1
      electrum/commands.py

1
electrum/commands.py

@ -1009,6 +1009,7 @@ class Commands:
lnworker = wallet.lnworker
lnaddr = lnworker._check_invoice(invoice, None)
payment_hash = lnaddr.paymenthash
wallet.save_invoice(parse_lightning_invoice(invoice))
success = await lnworker._pay(invoice, attempts=attempts)
return {
'payment_hash': payment_hash.hex(),

Loading…
Cancel
Save