1
0

restore action-driven wizard logic

This commit is contained in:
ThomasV
2016-01-06 10:31:55 +01:00
parent 90a2fc1379
commit 5915b9b7e1
8 changed files with 43 additions and 27 deletions

View File

@@ -449,7 +449,7 @@ class LedgerPlugin(BasePlugin):
password = wizard.request_password()
wallet.add_seed(seed, password)
wallet.add_cosigner_seed(seed, 'x/', password, passphrase)
wallet.create_main_account(password)
wallet.create_hd_account(password)
return wallet
@hook

View File

@@ -24,7 +24,7 @@ class Plugin(LedgerPlugin):
def on_create_wallet(self, wallet, wizard):
self.handler = BTChipQTHandler(wizard)
wallet.create_main_account(None)
wallet.create_main_account()
class BTChipQTHandler:

View File

@@ -327,7 +327,7 @@ class TrezorCompatiblePlugin(BasePlugin, ThreadJob):
password = wizard.request_password()
wallet.add_seed(seed, password)
wallet.add_cosigner_seed(seed, 'x/', password, passphrase)
wallet.create_main_account(password)
wallet.create_hd_account(password)
return wallet
def sign_transaction(self, wallet, tx, prev_tx, xpub_path):

View File

@@ -159,7 +159,7 @@ def qt_plugin_class(base_plugin_class):
assert type(wallet) == self.wallet_class
wallet.handler = self.create_handler(wizard)
self.select_device(wallet, wizard)
wallet.create_main_account(None)
wallet.create_main_account()
@hook
def receive_menu(self, menu, addrs, wallet):

View File

@@ -364,7 +364,7 @@ class TrustedCoinPlugin(BasePlugin):
wallet.add_cosigner_seed(' '.join(words[n:]), 'x2/', password)
restore_third_key(wallet)
wallet.create_main_account(password)
wallet.create_main_account()
return wallet
def create_remote_key(self, wallet, window):
@@ -406,4 +406,4 @@ class TrustedCoinPlugin(BasePlugin):
if self.setup_google_auth(window, short_id, otp_secret):
wallet.add_master_public_key('x3/', xpub3)
wallet.create_main_account(None)
wallet.create_main_account()