mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
wizard: multisig creation, let user go back to show their xpub
This commit is contained in:
parent
48d42bbafa
commit
f8c1bd1d3b
1 changed files with 4 additions and 7 deletions
|
@ -232,14 +232,11 @@ 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.run('show_xpub_and_add_cosigners', (Wallet.is_xpub(text), password,))
|
self.run('show_xpub_and_add_cosigners', (password,))
|
||||||
|
|
||||||
def show_xpub_and_add_cosigners(self, is_xpub, password):
|
def show_xpub_and_add_cosigners(self, password):
|
||||||
if not is_xpub:
|
|
||||||
xpub = self.wallet.master_public_keys.get('x1/')
|
xpub = self.wallet.master_public_keys.get('x1/')
|
||||||
self.show_xpub_dialog(run_next=lambda x: self.add_cosigners(password), xpub=xpub)
|
self.show_xpub_dialog(xpub=xpub, run_next=lambda x: self.run('add_cosigners', (password,)))
|
||||||
else:
|
|
||||||
self.add_cosigners(password)
|
|
||||||
|
|
||||||
def add_cosigners(self, password):
|
def add_cosigners(self, password):
|
||||||
i = self.wallet.get_missing_cosigner()
|
i = self.wallet.get_missing_cosigner()
|
||||||
|
|
Loading…
Add table
Reference in a new issue