follow-up #4396: new 2fa wallets could not be created
This commit is contained in:
@@ -578,17 +578,14 @@ class WalletStorage(PrintError):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def get_action(self):
|
def get_action(self):
|
||||||
if self.file_exists():
|
action = run_hook('get_action', self)
|
||||||
action = run_hook('get_action', self)
|
if self.file_exists() and self.requires_upgrade():
|
||||||
if action and self.requires_upgrade():
|
if action:
|
||||||
raise WalletFileException(_('Incomplete wallet files cannot be upgraded.'))
|
raise WalletFileException(_('Incomplete wallet files cannot be upgraded.'))
|
||||||
elif self.requires_upgrade():
|
return 'upgrade_storage'
|
||||||
return 'upgrade_storage'
|
if action:
|
||||||
elif action:
|
return action
|
||||||
return action
|
if not self.file_exists():
|
||||||
else:
|
|
||||||
return None
|
|
||||||
else:
|
|
||||||
return 'new'
|
return 'new'
|
||||||
|
|
||||||
def get_seed_version(self):
|
def get_seed_version(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user