unlock wallet after encrypting it

This commit is contained in:
Jack Robison 2018-11-29 15:16:53 -05:00
parent dc2786fbc0
commit 1cdfcd5b4e
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -88,7 +88,8 @@ class LbryWalletManager(BaseWalletManager):
account.encrypt(password)
account.serialize_encrypted = True
self.save()
return account.encrypted and account.serialize_encrypted
self.unlock_account(password, account)
return account.serialize_encrypted
def unlock_account(self, password, account):
assert account.encrypted, "account is not locked"