mirror of
https://github.com/mimblewimble/grin-wallet.git
synced 2025-01-20 19:11:09 +03:00
Do not prompt for password to start owner API (#656)
* Do not prompt for password to start owner API It makes no sense to ask for the password if one only wants to initialize the APIs. Asking for the password makes things unnecessarily difficult and insecure in case I, as a system administrator, want to have the APIs running as a system service. * Update wallet_args.rs * Update wallet_args.rs opening wallet if password argument is present * Update wallet_args.rs
This commit is contained in:
parent
95bb4c477e
commit
b45802aa6b
1 changed files with 2 additions and 2 deletions
|
@ -1037,10 +1037,10 @@ where
|
|||
("recover", _) => open_wallet = false,
|
||||
("cli", _) => open_wallet = false,
|
||||
("owner_api", _) => {
|
||||
// If wallet exists, open it. Otherwise, that's fine too.
|
||||
// If wallet exists and password is present then open it. Otherwise, that's fine too.
|
||||
let mut wallet_lock = wallet.lock();
|
||||
let lc = wallet_lock.lc_provider().unwrap();
|
||||
open_wallet = lc.wallet_exists(None)?;
|
||||
open_wallet = wallet_args.is_present("pass") && lc.wallet_exists(None)?;
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue