commit a5a5048d53e8db4c5ded6b9b5525c242c32bd445
parent 085b6ca2ab7beaad3210cef65677ce931b4298b2
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 2 May 2020 17:26:02 +0200
lnpay: save invoice
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/electrum/commands.py b/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(),