1
0

Add unlock command to CLI (stores wallet password in memory)

This commit is contained in:
ThomasV
2023-09-13 18:10:23 +02:00
parent 24f27618e2
commit 4e80ef818d
3 changed files with 26 additions and 1 deletions

View File

@@ -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