From cbeb8abe4a7c5aed83b9f77755b4ee65006a4b67 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 31 Aug 2014 12:40:57 +0200 Subject: [PATCH] test wallet type in restore hook --- plugins/btchipwallet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/btchipwallet.py b/plugins/btchipwallet.py index a7eea451c..5e5ca1ed0 100644 --- a/plugins/btchipwallet.py +++ b/plugins/btchipwallet.py @@ -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)