diff --git a/electrum/wallet.py b/electrum/wallet.py index 3439f34c4..66664d95b 100644 --- a/electrum/wallet.py +++ b/electrum/wallet.py @@ -509,11 +509,15 @@ class Abstract_Wallet(ABC, Logger, EventListener): return self.config.ENABLE_ANCHOR_CHANNELS and self.has_channels() def can_have_lightning(self) -> bool: - # we want static_remotekey to be a wallet address - return self.txin_type == 'p2wpkh' + if self.config.ENABLE_ANCHOR_CHANNELS: + # this excludes hardware wallets, watching-only wallets + return self.can_have_deterministic_lightning() + else: + # we want static_remotekey to be a wallet address + return self.txin_type == 'p2wpkh' def can_have_deterministic_lightning(self) -> bool: - if not self.can_have_lightning(): + if not self.txin_type == 'p2wpkh': return False if not self.keystore: return False