wizard: on adding bip39/hw ks, don't offer path scanning for multisig
follow-up #6219 for multisig, it's just confusing and useless as-is
This commit is contained in:
@@ -510,12 +510,15 @@ class BaseWizard(Logger):
|
|||||||
def f(derivation, script_type):
|
def f(derivation, script_type):
|
||||||
derivation = normalize_bip32_derivation(derivation)
|
derivation = normalize_bip32_derivation(derivation)
|
||||||
self.run('on_bip43', seed, passphrase, derivation, script_type)
|
self.run('on_bip43', seed, passphrase, derivation, script_type)
|
||||||
def get_account_xpub(account_path):
|
if self.wallet_type == 'standard':
|
||||||
root_seed = bip39_to_seed(seed, passphrase)
|
def get_account_xpub(account_path):
|
||||||
root_node = BIP32Node.from_rootseed(root_seed, xtype="standard")
|
root_seed = bip39_to_seed(seed, passphrase)
|
||||||
account_node = root_node.subkey_at_private_derivation(account_path)
|
root_node = BIP32Node.from_rootseed(root_seed, xtype="standard")
|
||||||
account_xpub = account_node.to_xpub()
|
account_node = root_node.subkey_at_private_derivation(account_path)
|
||||||
return account_xpub
|
account_xpub = account_node.to_xpub()
|
||||||
|
return account_xpub
|
||||||
|
else:
|
||||||
|
get_account_xpub = None
|
||||||
self.derivation_and_script_type_dialog(f, get_account_xpub=get_account_xpub)
|
self.derivation_and_script_type_dialog(f, get_account_xpub=get_account_xpub)
|
||||||
|
|
||||||
def create_keystore(self, seed, passphrase):
|
def create_keystore(self, seed, passphrase):
|
||||||
|
|||||||
Reference in New Issue
Block a user