From a5ab431b4bd880ffa51b83c0dc43ce59c3e51f00 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 24 Oct 2018 11:42:01 +0200 Subject: [PATCH] parse invoices with lightning: prefix --- electrum/gui/qt/paytoedit.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/electrum/gui/qt/paytoedit.py b/electrum/gui/qt/paytoedit.py index f5b742da5..af2223245 100644 --- a/electrum/gui/qt/paytoedit.py +++ b/electrum/gui/qt/paytoedit.py @@ -131,6 +131,9 @@ class PayToEdit(CompletionTextEdit, ScanQRTextEdit, Logger): if data.startswith("bitcoin:"): self.win.pay_to_URI(data) return + l = data.lower() + if l.startswith("lightning:"): + data = l[10:] if data.startswith("ln"): self.win.parse_lightning_invoice(data) self.lightning_invoice = data