Browse Source

Merge pull request #1322 from wozz/multisig-restore

update restore multisig to add wallet type
283
ThomasV 10 years ago
parent
commit
1e9e3f1493
  1. 2
      gui/qt/installwizard.py
  2. 3
      lib/wallet.py

2
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)

3
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):

Loading…
Cancel
Save