1
0

storage: upgrade format version automatically in load_data()

This commit is contained in:
SomberNight
2017-10-12 07:08:00 +02:00
parent 1320b18d7e
commit a5ffa69a3e
3 changed files with 19 additions and 6 deletions

View File

@@ -210,7 +210,7 @@ class Daemon(DaemonThread):
if path in self.wallets:
wallet = self.wallets[path]
return wallet
storage = WalletStorage(path)
storage = WalletStorage(path, manual_upgrades=True)
if not storage.file_exists():
return
if storage.is_encrypted():
@@ -220,7 +220,6 @@ class Daemon(DaemonThread):
if storage.requires_split():
return
if storage.requires_upgrade():
self.print_error('upgrading wallet format')
storage.upgrade()
if storage.get_action():
return