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
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
1 additions and
1 deletions
-
electrum/gui/qt/send_tab.py
|
@ -443,7 +443,7 @@ class SendTab(QWidget, MessageBoxMixin, Logger): |
|
|
label = out.get('label') |
|
|
label = out.get('label') |
|
|
message = out.get('message') |
|
|
message = out.get('message') |
|
|
lightning = out.get('lightning') |
|
|
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) |
|
|
self.handle_payment_identifier(lightning, can_use_network=can_use_network) |
|
|
return |
|
|
return |
|
|
# use label as description (not BIP21 compliant) |
|
|
# use label as description (not BIP21 compliant) |
|
|