1
0

auto-upgrade wallet format

This commit is contained in:
ThomasV
2016-09-29 10:52:51 +02:00
parent fa487ae0ca
commit da65e9e7d5
2 changed files with 3 additions and 4 deletions

View File

@@ -60,7 +60,9 @@ class WalletStorage(PrintError):
self.print_error("wallet path", self.path)
if self.path:
self.read(self.path)
if self.requires_upgrade():
self.print_error('upgrading wallet format')
self.upgrade()
# check here if I need to load a plugin
t = self.get('wallet_type')
l = plugin_loaders.get(t)