This commit is contained in:
Lex Berezhny 2022-03-13 20:42:34 -04:00
parent f05943ff79
commit ca4ba19a5e

View file

@ -203,11 +203,12 @@ class Wallet:
return True return True
return False return False
def unlock(self, password): async def unlock(self, password):
for account in self.accounts: for account in self.accounts:
if account.encrypted: if account.encrypted:
if not account.decrypt(password): if not account.decrypt(password):
return False return False
await account.deterministic_channel_keys.ensure_cache_primed()
self.encryption_password = password self.encryption_password = password
return True return True