wizard: try harder to have temporarily stored pw erased from memory

This commit is contained in:
SomberNight 2019-08-14 17:27:38 +02:00
parent 25a1ed048f
commit bffc2a1d4b
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9
2 changed files with 2 additions and 1 deletions

View file

@ -582,6 +582,7 @@ class BaseWizard(Logger):
if not self.pw_args:
return
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.set_keystore_encryption(bool(password))
if encrypt_storage:

View file

@ -287,7 +287,7 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
else:
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):
path = storage.path