1
0

Merge pull request #3882 from SomberNight/storage_hw_encrypt_cli_support

cli support for hw encrypted wallets
This commit is contained in:
ThomasV
2018-02-23 12:07:08 +01:00
committed by GitHub
8 changed files with 66 additions and 12 deletions

View File

@@ -138,6 +138,8 @@ class Commands:
@command('wp')
def password(self, password=None, new_password=None):
"""Change wallet password. """
if self.wallet.storage.is_encrypted_with_hw_device() and new_password:
raise Exception("Can't change the password of a wallet encrypted with a hw device.")
b = self.wallet.storage.is_encrypted()
self.wallet.update_password(password, new_password, b)
self.wallet.storage.write()