forked from LBRYCommunity/lbry-sdk
Merge pull request #1676 from lbryio/fix-1573
unlock wallet after encrypting it
This commit is contained in:
commit
23e8f0d849
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue