From a6eb9753eba635e84a4522158c587ec07c13e1ce Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 7 Sep 2017 21:40:38 +0200 Subject: [PATCH] fix cmdline create with segwit option --- electrum | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum b/electrum index 31d1c50d8..3510b3d4f 100755 --- a/electrum +++ b/electrum @@ -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())