Updated validator config according to suggestions.

- Directory structure changed slightly
 - Uses a filter_map instead of a for loop.
 - All errors reading files does not prevent others from being read.
 - The accounts manager needs to generate files first, with the same structure.
This commit is contained in:
Luke Anderson
2019-03-23 15:46:51 +11:00
parent 9e47cb56e7
commit fba916a0d8
5 changed files with 100 additions and 98 deletions

View File

@@ -2,7 +2,7 @@ use bls::Keypair;
use clap::{App, Arg, SubCommand};
use slog::{debug, info, o, Drain};
use std::path::PathBuf;
use validator_client::config::ValidatorClientConfig;
use validator_client::Config as ValidatorClientConfig;
fn main() {
// Logging
@@ -31,7 +31,7 @@ fn main() {
)
.get_matches();
let config = ValidatorClientConfig::build_config(&matches)
let config = ValidatorClientConfig::parse_args(&matches, &log)
.expect("Unable to build a configuration for the account manager.");
// Log configuration