1
0

lnpay: save invoice

This commit is contained in:
ThomasV
2020-05-02 17:26:02 +02:00
parent 085b6ca2ab
commit a5a5048d53

View File

@@ -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(),