electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 90a2fc1379808c2a2f91302bfaa82a32ecd43df3
parent 0117109a2da16f2666622cc2f9689a20fec7e6f9
Author: ThomasV <thomasv@electrum.org>
Date:   Wed,  6 Jan 2016 09:55:49 +0100

Revert "Fix MultiSig wallet creation."

This reverts commit 21038843ea9ab846b1afaf796b3b33b03da6d191.

Diffstat:
Mlib/wallet.py | 5+++++
Mlib/wizard.py | 6++----
2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -1817,6 +1817,11 @@ class Multisig_Wallet(BIP32_Wallet, Mnemonic): def get_master_public_keys(self): return self.master_public_keys + def get_action(self): + for i in range(self.n): + if self.master_public_keys.get("x%d/"%(i+1)) is None: + return 'create_seed' if i == 0 else 'add_cosigners' + class OldWallet(Deterministic_Wallet): wallet_type = 'old' diff --git a/lib/wizard.py b/lib/wizard.py @@ -19,7 +19,7 @@ from electrum import WalletStorage from electrum.plugins import run_hook from util import PrintError -from wallet import Wallet, Multisig_Wallet +from wallet import Wallet from i18n import _ MSG_GENERATING_WAIT = _("Electrum is generating your addresses, please wait...") @@ -264,14 +264,12 @@ class WizardBase(PrintError): def create_seed(self, wallet): '''The create_seed action creates a seed and then generates - wallet account(s) whilst we still have the password.''' + wallet account(s).''' seed = wallet.make_seed(self.language_for_seed) self.show_and_verify_seed(seed) password = self.request_password() wallet.add_seed(seed, password) wallet.create_master_keys(password) - if isinstance(wallet, Multisig_Wallet): - self.add_cosigners(wallet) wallet.create_main_account(password) def add_cosigners(self, wallet):