URI: 
       tfix multisig update_password - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 9cb576a88c962b7bf6e0b81279906d7e597be580
   DIR parent 98353c286a5a2a1b49521a54d9a25f8ed4253261
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Sat,  4 Mar 2017 10:30:05 +0100
       
       fix multisig update_password
       
       Diffstat:
         M lib/storage.py                      |       2 +-
         M lib/wallet.py                       |       4 ++--
         M plugins/trustedcoin/trustedcoin.py  |       2 +-
       
       3 files changed, 4 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/lib/storage.py b/lib/storage.py
       t@@ -84,7 +84,7 @@ class WalletStorage(PrintError):
        
            def set_password(self, pw, encrypt):
                """Set self.pubkey"""
       -        self.put('use_encryption', (pw is not None))
       +        self.put('use_encryption', bool(pw))
                self.decrypt(None, pw if encrypt else None)
        
            def is_encrypted(self):
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -1682,12 +1682,12 @@ class Multisig_Wallet(Deterministic_Wallet, P2SH):
            def get_keystores(self):
                return [self.keystores[i] for i in sorted(self.keystores.keys())]
        
       -    def update_password(self, old_pw, new_pw):
       +    def update_password(self, old_pw, new_pw, encrypt=False):
                for name, keystore in self.keystores.items():
                    if keystore.can_change_password():
                        keystore.update_password(old_pw, new_pw)
                        self.storage.put(name, keystore.dump())
       -        self.storage.set_password(new_pw)
       +        self.storage.set_password(new_pw, encrypt)
        
            def check_password(self, password):
                self.keystore.check_password(password)
   DIR diff --git a/plugins/trustedcoin/trustedcoin.py b/plugins/trustedcoin/trustedcoin.py
       t@@ -442,8 +442,8 @@ class TrustedCoinPlugin(BasePlugin):
                long_user_id, short_id = get_user_id(storage)
                xpub3 = make_xpub(signing_xpub, long_user_id)
                k3 = keystore.from_xpub(xpub3)
       -        storage.put('use_encryption', bool(password))
                storage.put('x3/', k3.dump())
       +        storage.set_password(password, encrypt)
                wizard.wallet = Wallet_2fa(storage)
                wizard.create_addresses()