Add unlock command to CLI (stores wallet password in memory)
This commit is contained in:
@@ -155,7 +155,8 @@ def init_cmdline(config_options, wallet_path, *, rpcserver: bool, config: 'Simpl
|
||||
# commands needing password
|
||||
if ((cmd.requires_wallet and storage.is_encrypted() and not rpcserver)
|
||||
or (cmdname == 'load_wallet' and storage.is_encrypted())
|
||||
or cmd.requires_password):
|
||||
or (cmdname in ['password', 'unlock'])
|
||||
or (cmd.requires_password and not rpcserver)):
|
||||
if storage.is_encrypted_with_hw_device():
|
||||
# this case is handled later in the control flow
|
||||
password = None
|
||||
|
||||
Reference in New Issue
Block a user