Browse Source

parse invoices with lightning: prefix

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
ThomasV 6 years ago
parent
commit
a5ab431b4b
  1. 3
      electrum/gui/qt/paytoedit.py

3
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

Loading…
Cancel
Save