mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-02 18:25:21 +00:00
storage: call load_plugins in decrypt
This commit is contained in:
parent
1e519f2dd0
commit
d8c4bf5662
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue