Merge pull request #1676 from lbryio/fix-1573

unlock wallet after encrypting it
This commit is contained in:
Jack Robison 2018-11-29 16:13:21 -05:00 committed by GitHub
commit 23e8f0d849
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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