Browse Source

qt send: bip21: ignore "lightning=" part if LN is disabled

A wallet with LN disabled could not pay a bip21 URI with an address and a "lightning=" key.
patch-4
SomberNight 3 years ago
parent
commit
2fd762c308
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/gui/qt/send_tab.py

2
electrum/gui/qt/send_tab.py

@ -443,7 +443,7 @@ class SendTab(QWidget, MessageBoxMixin, Logger):
label = out.get('label')
message = out.get('message')
lightning = out.get('lightning')
if lightning:
if lightning and (self.wallet.has_lightning() or not address):
self.handle_payment_identifier(lightning, can_use_network=can_use_network)
return
# use label as description (not BIP21 compliant)

Loading…
Cancel
Save