trigger upgrade on android

This commit is contained in:
ThomasV 2016-08-26 07:09:38 +02:00
parent 843ac4e90b
commit af2bf1955a
1 changed files with 3 additions and 0 deletions

View File

@ -187,6 +187,9 @@ class Daemon(DaemonThread):
storage = WalletStorage(path)
if not storage.file_exists:
return
if storage.requires_upgrade() and 'ANDROID_DATA' in os.environ:
self.print_error('upgrading wallet format')
storage.upgrade()
if storage.requires_split() or storage.requires_upgrade() or storage.get_action():
return
wallet = Wallet(storage)