1
0

storage upgrade as part of the wizard. fix storage upgrade on kivy.

This commit is contained in:
SomberNight
2018-05-31 19:37:55 +02:00
parent d288999036
commit 2b84fba67b
6 changed files with 43 additions and 20 deletions

View File

@@ -578,10 +578,17 @@ class WalletStorage(PrintError):
return True
def get_action(self):
action = run_hook('get_action', self)
if action:
return action
if not self.file_exists():
if self.file_exists():
action = run_hook('get_action', self)
if action and self.requires_upgrade():
raise WalletFileException(_('Incomplete wallet files cannot be upgraded.'))
elif self.requires_upgrade():
return 'upgrade_storage'
elif action:
return action
else:
return None
else:
return 'new'
def get_seed_version(self):