mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
wizard: try harder to have temporarily stored pw erased from memory
This commit is contained in:
parent
25a1ed048f
commit
bffc2a1d4b
2 changed files with 2 additions and 1 deletions
|
@ -582,6 +582,7 @@ class BaseWizard(Logger):
|
||||||
if not self.pw_args:
|
if not self.pw_args:
|
||||||
return
|
return
|
||||||
password, encrypt_storage, storage_enc_version = self.pw_args
|
password, encrypt_storage, storage_enc_version = self.pw_args
|
||||||
|
self.pw_args = None # clean-up so that it can get GC-ed
|
||||||
storage = WalletStorage(path)
|
storage = WalletStorage(path)
|
||||||
storage.set_keystore_encryption(bool(password))
|
storage.set_keystore_encryption(bool(password))
|
||||||
if encrypt_storage:
|
if encrypt_storage:
|
||||||
|
|
|
@ -287,7 +287,7 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
|
||||||
else:
|
else:
|
||||||
raise Exception('Unexpected encryption version')
|
raise Exception('Unexpected encryption version')
|
||||||
|
|
||||||
return self.temp_storage.path, (self.temp_storage if self.temp_storage.file_exists() else None) #
|
return self.temp_storage.path, (self.temp_storage if self.temp_storage.file_exists() else None)
|
||||||
|
|
||||||
def run_upgrades(self, storage):
|
def run_upgrades(self, storage):
|
||||||
path = storage.path
|
path = storage.path
|
||||||
|
|
Loading…
Add table
Reference in a new issue