follow-up 912e1a3a5b: password may be None if wallet is not file encrypted
This commit is contained in:
@@ -464,7 +464,7 @@ class Daemon(Logger):
|
||||
if wallet := self._wallets.get(wallet_key):
|
||||
return wallet
|
||||
wallet = self._load_wallet(path, password, upgrade=upgrade, config=self.config)
|
||||
if wallet.requires_unlock():
|
||||
if wallet.requires_unlock() and password is not None:
|
||||
wallet.unlock(password)
|
||||
wallet.start_network(self.network)
|
||||
self.add_wallet(wallet)
|
||||
|
||||
Reference in New Issue
Block a user