fix cmdline create with segwit option

This commit is contained in:
ThomasV 2017-09-07 21:40:38 +02:00
parent f1666f208b
commit a6eb9753eb

View file

@ -166,7 +166,8 @@ def run_non_RPC(config):
elif cmdname == 'create':
password = password_dialog()
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.update_password(None, password)
storage.put('keystore', k.dump())