mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 16:31:29 +00:00
fix cmdline create with segwit option
This commit is contained in:
parent
f1666f208b
commit
a6eb9753eb
1 changed files with 2 additions and 1 deletions
3
electrum
3
electrum
|
@ -166,7 +166,8 @@ def run_non_RPC(config):
|
||||||
elif cmdname == 'create':
|
elif cmdname == 'create':
|
||||||
password = password_dialog()
|
password = password_dialog()
|
||||||
passphrase = config.get('passphrase', '')
|
passphrase = config.get('passphrase', '')
|
||||||
seed = Mnemonic('en').make_seed()
|
seed_type = 'segwit' if config.get('segwit') else 'standard'
|
||||||
|
seed = Mnemonic('en').make_seed(seed_type)
|
||||||
k = keystore.from_seed(seed, passphrase)
|
k = keystore.from_seed(seed, passphrase)
|
||||||
k.update_password(None, password)
|
k.update_password(None, password)
|
||||||
storage.put('keystore', k.dump())
|
storage.put('keystore', k.dump())
|
||||||
|
|
Loading…
Add table
Reference in a new issue