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.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user