electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit a5ab431b4bd880ffa51b83c0dc43ce59c3e51f00
parent 5ca6fbaea7c43de5adc7401464c63d692bbeeba9
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 24 Oct 2018 11:42:01 +0200

parse invoices with lightning: prefix

Diffstat:
Melectrum/gui/qt/paytoedit.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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