lnpay: save invoice
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user