commit af2bf1955a7291e432493e1a7601d8bc4e4dd1af
parent 843ac4e90b998c2a4c95da3294a908e2ddb715dd
Author: ThomasV <thomasv@electrum.org>
Date: Fri, 26 Aug 2016 07:09:38 +0200
trigger upgrade on android
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/daemon.py b/lib/daemon.py
@@ -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)