1
0

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:
SomberNight
2022-10-31 19:09:08 +00:00
parent ac1d53f067
commit 2fd762c308

View File

@@ -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)