1
0

wallet.can_have_lightning: more explicit impl

Watching-only wallets can have a keystore.
It was actually keystore.may_have_password() that was filtering them out but that was not really obvious.
Better to be explicit I think.
This commit is contained in:
SomberNight
2025-07-18 11:49:50 +00:00
parent 6feba10170
commit 463e447439

View File

@@ -521,9 +521,10 @@ class Abstract_Wallet(ABC, Logger, EventListener):
if not self.txin_type == 'p2wpkh':
return False
if self.config.ENABLE_ANCHOR_CHANNELS:
# exclude watching-only wallets
if not self.keystore:
return False
if self.keystore.is_watching_only():
return False
# exclude hardware wallets
if not self.keystore.may_have_password():
return False