1
0

hardware: store derivation instead of account_id

This commit is contained in:
ThomasV
2016-08-20 21:08:30 +02:00
parent 664077397e
commit 428bc539b3
5 changed files with 11 additions and 7 deletions

View File

@@ -176,8 +176,9 @@ class BaseWizard(object):
self.account_id_dialog(run_next=f)
def on_hardware_account_id(self, account_id):
from keystore import load_keystore
self.storage.put('account_id', int(account_id))
from keystore import load_keystore, bip44_derivation
derivation = bip44_derivation(int(account_id))
self.storage.put('derivation', derivation)
name = self.storage.get('hardware_type')
plugin = self.plugins.get_plugin(name)
plugin.on_create_wallet(self.storage, self)