From b8b24da292a96ecd82ccea372c475761b851f090 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 14 Oct 2019 12:53:02 -0400 Subject: [PATCH] encrypt/decrypt/lock/unlock commands return True --- torba/torba/client/wallet.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/torba/torba/client/wallet.py b/torba/torba/client/wallet.py index 5e57b6011..d00026ab4 100644 --- a/torba/torba/client/wallet.py +++ b/torba/torba/client/wallet.py @@ -181,12 +181,14 @@ class Wallet: for account in self.accounts: if account.encrypted: account.decrypt(password) + return True def lock(self): for account in self.accounts: if not account.encrypted: assert account.password is not None, "account was never encrypted" account.encrypt(account.password) + return True @property def is_encrypted(self) -> bool: @@ -199,6 +201,7 @@ class Wallet: for account in self.accounts: account.serialize_encrypted = False self.save() + return True def encrypt(self, password): for account in self.accounts: @@ -207,6 +210,7 @@ class Wallet: account.serialize_encrypted = True self.save() self.unlock(password) + return True class WalletStorage: