check requires_split before upgrade
This commit is contained in:
@@ -187,8 +187,11 @@ class Daemon(DaemonThread):
|
||||
storage = WalletStorage(path)
|
||||
if not storage.file_exists:
|
||||
return
|
||||
if storage.requires_split() or storage.requires_upgrade() or storage.get_action():
|
||||
if storage.requires_split() or storage.get_action():
|
||||
return
|
||||
if self.requires_upgrade():
|
||||
self.print_error('upgrading wallet format')
|
||||
self.upgrade()
|
||||
wallet = Wallet(storage)
|
||||
wallet.start_threads(self.network)
|
||||
self.wallets[path] = wallet
|
||||
|
||||
Reference in New Issue
Block a user