Use schlesi as default testnet (#1108)

* Use schlesi as default testnet

* Add schlesi dir to gitignore
This commit is contained in:
Paul Hauner
2020-05-06 15:24:25 +10:00
committed by GitHub
parent 4afcf721b9
commit 1552f9997e
6 changed files with 29 additions and 11 deletions

View File

@@ -23,3 +23,4 @@ futures = "0.1.25"
validator_client = { "path" = "../validator_client" }
account_manager = { "path" = "../account_manager" }
clap_utils = { path = "../eth2/utils/clap_utils" }
eth2_testnet_config = { path = "../eth2/utils/eth2_testnet_config" }

View File

@@ -6,6 +6,7 @@ use clap::{App, Arg, ArgMatches};
use clap_utils;
use env_logger::{Builder, Env};
use environment::EnvironmentBuilder;
use eth2_testnet_config::HARDCODED_TESTNET;
use slog::{crit, info, warn};
use std::path::PathBuf;
use std::process::exit;
@@ -156,6 +157,14 @@ fn run<E: EthSpec>(
"Ethereum 2.0 is pre-release. This software is experimental."
);
if !matches.is_present("testnet-dir") {
info!(
log,
"Using default testnet";
"default" => HARDCODED_TESTNET
)
}
// Note: the current code technically allows for starting a beacon node _and_ a validator
// client at the same time.
//