mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 13:28:33 +00:00
Minor fixes (#2038)
Fixes a couple of low hanging fruits. - Fixes #2037 - `validators-dir` and `secrets-dir` flags don't really need to depend upon each other - Fixes #2006 and Fixes #1995
This commit is contained in:
@@ -82,10 +82,10 @@ impl Config {
|
||||
validator_dir = Some(base_dir.join(DEFAULT_VALIDATOR_DIR));
|
||||
secrets_dir = Some(base_dir.join(DEFAULT_SECRET_DIR));
|
||||
}
|
||||
if cli_args.value_of("validators-dir").is_some()
|
||||
&& cli_args.value_of("secrets-dir").is_some()
|
||||
{
|
||||
if cli_args.value_of("validators-dir").is_some() {
|
||||
validator_dir = Some(parse_required(cli_args, "validators-dir")?);
|
||||
}
|
||||
if cli_args.value_of("secrets-dir").is_some() {
|
||||
secrets_dir = Some(parse_required(cli_args, "secrets-dir")?);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user