From 8a7f81a9de711e46c1156e587d24857d2e0f987c Mon Sep 17 00:00:00 2001 From: m0mchil Date: Fri, 11 Jul 2014 22:53:28 +0300 Subject: [PATCH] support for restore --- plugins/trezor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/trezor.py b/plugins/trezor.py index 46e6c1fc9..b0504be4a 100644 --- a/plugins/trezor.py +++ b/plugins/trezor.py @@ -49,6 +49,11 @@ class Plugin(BasePlugin): def add_wallet_types(self, wallet_types): wallet_types.append(('trezor', _("Trezor wallet"), TrezorWallet)) + def installwizard_restore(self, wizard, storage): + wallet = TrezorWallet(storage) + wallet.create_accounts(None) + return wallet + def send_tx(self, tx, wallet): try: wallet.sign_transaction(tx, None, None)