unlock wallet after encrypting it
This commit is contained in:
parent
dc2786fbc0
commit
1cdfcd5b4e
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