lnpay: save invoice
This commit is contained in:
@@ -1009,6 +1009,7 @@ class Commands:
|
|||||||
lnworker = wallet.lnworker
|
lnworker = wallet.lnworker
|
||||||
lnaddr = lnworker._check_invoice(invoice, None)
|
lnaddr = lnworker._check_invoice(invoice, None)
|
||||||
payment_hash = lnaddr.paymenthash
|
payment_hash = lnaddr.paymenthash
|
||||||
|
wallet.save_invoice(parse_lightning_invoice(invoice))
|
||||||
success = await lnworker._pay(invoice, attempts=attempts)
|
success = await lnworker._pay(invoice, attempts=attempts)
|
||||||
return {
|
return {
|
||||||
'payment_hash': payment_hash.hex(),
|
'payment_hash': payment_hash.hex(),
|
||||||
|
|||||||
Reference in New Issue
Block a user