1
0

anchor channels: unlock wallet on startup if the wallet has channels

This commit is contained in:
ThomasV
2024-12-18 10:40:49 +01:00
parent 693210edbe
commit ee42e09387
5 changed files with 19 additions and 4 deletions

View File

@@ -495,6 +495,8 @@ 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():
wallet.unlock(password)
wallet.start_network(self.network)
self.add_wallet(wallet)
self.update_recently_opened_wallets(path)