1
0

tests: add more tests for daemon.update_password_for_directory

This commit is contained in:
SomberNight
2023-03-20 19:54:53 +00:00
parent aac9afa7c1
commit 11f06d860e
3 changed files with 164 additions and 11 deletions

View File

@@ -604,6 +604,11 @@ class Daemon(Logger):
if not os.path.isfile(path):
continue
wallet = self.get_wallet(path)
# note: we only create a new wallet object if one was not loaded into the wallet already.
# This is to avoid having two wallet objects contending for the same file.
# Take care: this only works if the daemon knows about all wallet objects.
# if other code already has created a Wallet() for a file but did not tell the daemon,
# hard-to-understand bugs will follow...
if wallet is None:
try:
wallet = self._load_wallet(path, old_password, manual_upgrades=False, config=self.config)