electrum

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

commit 1e9e3f149341a6e0e87c1b330fadea6128ca3f0f
parent 765ef338ec018191b5fd7597c8db0fe1c123f2ab
Author: ThomasV <electrumdev@gmail.com>
Date:   Sat, 27 Jun 2015 22:29:57 +0200

Merge pull request #1322 from wozz/multisig-restore

update restore multisig to add wallet type
Diffstat:
Mgui/qt/installwizard.py | 2+-
Mlib/wallet.py | 3++-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py @@ -522,7 +522,7 @@ class InstallWizard(QDialog): if not key_list: return password = self.password_dialog() if any(map(lambda x: Wallet.is_seed(x) or Wallet.is_xprv(x), key_list)) else None - wallet = Wallet.from_multisig(key_list, password, self.storage) + wallet = Wallet.from_multisig(key_list, password, self.storage, t) else: self.storage.put('wallet_type', t, False) diff --git a/lib/wallet.py b/lib/wallet.py @@ -1999,7 +1999,8 @@ class Wallet(object): return w @classmethod - def from_multisig(klass, key_list, password, storage): + def from_multisig(klass, key_list, password, storage, wallet_type): + storage.put('wallet_type', wallet_type, True) self = Multisig_Wallet(storage) key_list = sorted(key_list, key = lambda x: klass.is_xpub(x)) for i, text in enumerate(key_list):