test wallet type in restore hook

This commit is contained in:
ThomasV 2014-08-31 12:40:57 +02:00
parent a3790372d8
commit cbeb8abe4a
1 changed files with 2 additions and 0 deletions

View File

@ -86,6 +86,8 @@ class Plugin(BasePlugin):
@hook
def installwizard_restore(self, wizard, storage):
if storage.get('wallet_type') != 'btchip':
return
wallet = BTChipWallet(storage)
try:
wallet.create_main_account(None)