mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 07:23:25 +00:00
base_wizard: minor fixes
This commit is contained in:
parent
7ee47491b3
commit
ee032e9158
1 changed files with 5 additions and 1 deletions
|
@ -227,6 +227,7 @@ class BaseWizard(object):
|
||||||
self.storage.put('wallet_type', self.multisig_type)
|
self.storage.put('wallet_type', self.multisig_type)
|
||||||
self.wallet = Multisig_Wallet(self.storage)
|
self.wallet = Multisig_Wallet(self.storage)
|
||||||
self.wallet.add_cosigner('x1/', text, password)
|
self.wallet.add_cosigner('x1/', text, password)
|
||||||
|
self.stack = []
|
||||||
self.run('show_xpub_and_add_cosigners', (password,))
|
self.run('show_xpub_and_add_cosigners', (password,))
|
||||||
|
|
||||||
def show_xpub_and_add_cosigners(self, password):
|
def show_xpub_and_add_cosigners(self, password):
|
||||||
|
@ -239,7 +240,10 @@ class BaseWizard(object):
|
||||||
|
|
||||||
def on_cosigner(self, text, password):
|
def on_cosigner(self, text, password):
|
||||||
i = self.wallet.get_missing_cosigner()
|
i = self.wallet.get_missing_cosigner()
|
||||||
self.wallet.add_cosigner('x%d/'%i, text, password)
|
try:
|
||||||
|
self.wallet.add_cosigner('x%d/'%i, text, password)
|
||||||
|
except BaseException as e:
|
||||||
|
print "error:" + e
|
||||||
i = self.wallet.get_missing_cosigner()
|
i = self.wallet.get_missing_cosigner()
|
||||||
if i:
|
if i:
|
||||||
self.run('add_cosigners', password)
|
self.run('add_cosigners', password)
|
||||||
|
|
Loading…
Add table
Reference in a new issue