mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-05 18:42:20 +00:00
Clean datadir after config files have been loaded
This commit is contained in:
parent
39be2ed1d2
commit
901393b664
@ -63,10 +63,6 @@ fn process_testnet_subcommand(
|
|||||||
builder.set_random_datadir()?;
|
builder.set_random_datadir()?;
|
||||||
}
|
}
|
||||||
|
|
||||||
if cli_args.is_present("force") {
|
|
||||||
builder.clean_datadir()?;
|
|
||||||
}
|
|
||||||
|
|
||||||
if let Some(path_string) = cli_args.value_of("eth2-config") {
|
if let Some(path_string) = cli_args.value_of("eth2-config") {
|
||||||
let path = path_string
|
let path = path_string
|
||||||
.parse::<PathBuf>()
|
.parse::<PathBuf>()
|
||||||
@ -83,6 +79,10 @@ fn process_testnet_subcommand(
|
|||||||
builder.load_client_config(path)?;
|
builder.load_client_config(path)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if cli_args.is_present("force") {
|
||||||
|
builder.clean_datadir()?;
|
||||||
|
}
|
||||||
|
|
||||||
info!(
|
info!(
|
||||||
log,
|
log,
|
||||||
"Creating new datadir";
|
"Creating new datadir";
|
||||||
|
Loading…
Reference in New Issue
Block a user