commit cc33b752e20b084570c9fdbca4afb7a6bb0d128f
parent fc97181aa554a3f7bc0a50068f68a830286f8796
Author: SomberNight <somber.night@protonmail.com>
Date: Thu, 5 Nov 2020 00:18:54 +0100
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
Diffstat:
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/electrum/base_wizard.py b/electrum/base_wizard.py
@@ -510,12 +510,15 @@ class BaseWizard(Logger):
def f(derivation, script_type):
derivation = normalize_bip32_derivation(derivation)
self.run('on_bip43', seed, passphrase, derivation, script_type)
- def get_account_xpub(account_path):
- root_seed = bip39_to_seed(seed, passphrase)
- root_node = BIP32Node.from_rootseed(root_seed, xtype="standard")
- account_node = root_node.subkey_at_private_derivation(account_path)
- account_xpub = account_node.to_xpub()
- return account_xpub
+ if self.wallet_type == 'standard':
+ def get_account_xpub(account_path):
+ root_seed = bip39_to_seed(seed, passphrase)
+ root_node = BIP32Node.from_rootseed(root_seed, xtype="standard")
+ account_node = root_node.subkey_at_private_derivation(account_path)
+ 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)
def create_keystore(self, seed, passphrase):