fix update_pasword bug
This commit is contained in:
3
electrum
3
electrum
@@ -125,7 +125,8 @@ def run_non_RPC(config):
|
|||||||
k = keystore.from_keys(text)
|
k = keystore.from_keys(text)
|
||||||
else:
|
else:
|
||||||
sys.exit("Error: Seed or key not recognized")
|
sys.exit("Error: Seed or key not recognized")
|
||||||
k.update_password(None, password)
|
if password:
|
||||||
|
k.update_password(None, password)
|
||||||
storage.put('keystore', k.dump())
|
storage.put('keystore', k.dump())
|
||||||
storage.put('wallet_type', 'standard')
|
storage.put('wallet_type', 'standard')
|
||||||
storage.put('use_encryption', bool(password))
|
storage.put('use_encryption', bool(password))
|
||||||
|
|||||||
Reference in New Issue
Block a user