update restore multisig to add type
This commit is contained in:
@@ -522,7 +522,7 @@ class InstallWizard(QDialog):
|
|||||||
if not key_list:
|
if not key_list:
|
||||||
return
|
return
|
||||||
password = self.password_dialog() if any(map(lambda x: Wallet.is_seed(x) or Wallet.is_xprv(x), key_list)) else None
|
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:
|
else:
|
||||||
self.storage.put('wallet_type', t, False)
|
self.storage.put('wallet_type', t, False)
|
||||||
|
|||||||
@@ -1999,7 +1999,8 @@ class Wallet(object):
|
|||||||
return w
|
return w
|
||||||
|
|
||||||
@classmethod
|
@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)
|
self = Multisig_Wallet(storage)
|
||||||
key_list = sorted(key_list, key = lambda x: klass.is_xpub(x))
|
key_list = sorted(key_list, key = lambda x: klass.is_xpub(x))
|
||||||
for i, text in enumerate(key_list):
|
for i, text in enumerate(key_list):
|
||||||
|
|||||||
Reference in New Issue
Block a user