fix android: from_seed
This commit is contained in:
parent
75cf142be0
commit
9aa812026a
@ -924,22 +924,22 @@ class ElectrumGui:
|
|||||||
wallet = Wallet(storage)
|
wallet = Wallet(storage)
|
||||||
seed = wallet.make_seed()
|
seed = wallet.make_seed()
|
||||||
modal_dialog('Your seed is:', seed)
|
modal_dialog('Your seed is:', seed)
|
||||||
|
wallet.add_seed(seed, password)
|
||||||
|
wallet.create_master_keys(password)
|
||||||
|
wallet.create_main_account(password)
|
||||||
elif action == 'restore':
|
elif action == 'restore':
|
||||||
seed = self.seed_dialog()
|
seed = self.seed_dialog()
|
||||||
if not seed:
|
if not seed:
|
||||||
exit()
|
exit()
|
||||||
if not Wallet.is_seed(seed):
|
if not Wallet.is_seed(seed):
|
||||||
exit()
|
exit()
|
||||||
wallet = Wallet.from_seed(seed, storage)
|
wallet = Wallet.from_seed(seed, password, storage)
|
||||||
else:
|
else:
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
msg = "Creating wallet" if action == 'create' else "Restoring wallet"
|
msg = "Creating wallet" if action == 'create' else "Restoring wallet"
|
||||||
droid.dialogCreateSpinnerProgress("Electrum", msg)
|
droid.dialogCreateSpinnerProgress("Electrum", msg)
|
||||||
droid.dialogShow()
|
droid.dialogShow()
|
||||||
wallet.add_seed(seed, password)
|
|
||||||
wallet.create_master_keys(password)
|
|
||||||
wallet.create_main_account(password)
|
|
||||||
wallet.start_threads(network)
|
wallet.start_threads(network)
|
||||||
if action == 'restore':
|
if action == 'restore':
|
||||||
wallet.restore(lambda x: None)
|
wallet.restore(lambda x: None)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user