From a5a5048d53e8db4c5ded6b9b5525c242c32bd445 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 2 May 2020 17:26:02 +0200 Subject: [PATCH] lnpay: save invoice --- electrum/commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/electrum/commands.py b/electrum/commands.py index 03cb5847e..91df39190 100644 --- 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(),