electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit d8c4bf5662f76d98ca0922a322de843ef9b6991a
parent 1e519f2dd0255862a6db0e55e0485e1668dfa257
Author: ThomasV <thomasv@electrum.org>
Date:   Thu, 28 Feb 2019 15:50:37 +0100

storage: call load_plugins in decrypt

Diffstat:
Melectrum/storage.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/electrum/storage.py b/electrum/storage.py @@ -63,12 +63,12 @@ class WalletStorage(PrintError): self._encryption_version = self._init_encryption_version() if not self.is_encrypted(): self.db = DB_Class(self.raw, manual_upgrades=manual_upgrades) + self.load_plugins() else: self._encryption_version = STO_EV_PLAINTEXT # avoid new wallets getting 'upgraded' self.db = DB_Class('', manual_upgrades=False) - self.load_plugins() def load_plugins(self): wallet_type = self.db.get('wallet_type') @@ -179,6 +179,7 @@ class WalletStorage(PrintError): self.pubkey = ec_key.get_public_key_hex() s = s.decode('utf8') self.db = JsonDB(s, manual_upgrades=True) + self.load_plugins() def encrypt_before_writing(self, plaintext: str) -> str: s = plaintext