mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-01 00:41:20 +00:00
Move data dir cleaning in node runtime start
This commit is contained in:
parent
d80d9dba4c
commit
2706025a34
@ -78,6 +78,10 @@ fn process_testnet_subcommand(
|
|||||||
builder.set_random_datadir()?;
|
builder.set_random_datadir()?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if cli_args.is_present("force") {
|
||||||
|
builder.clean_datadir()?;
|
||||||
|
}
|
||||||
|
|
||||||
let is_bootstrap = cli_args.subcommand_name() == Some("bootstrap");
|
let is_bootstrap = cli_args.subcommand_name() == Some("bootstrap");
|
||||||
|
|
||||||
if let Some(path_string) = cli_args.value_of("eth2-config") {
|
if let Some(path_string) = cli_args.value_of("eth2-config") {
|
||||||
@ -112,10 +116,6 @@ 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