mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 05:18:30 +00:00
Add Tests for Bellatrix CLI flags/Fix Peer Scoring
This commit is contained in:
@@ -23,4 +23,5 @@ hex = "0.4.2"
|
||||
serde = "1.0.116"
|
||||
serde_derive = "1.0.116"
|
||||
serde_json = "1.0.66"
|
||||
serde_yaml = "0.8.13"
|
||||
eth2_network_config = { path = "../common/eth2_network_config" }
|
||||
|
||||
@@ -95,6 +95,15 @@ fn main<T: EthSpec>(
|
||||
serde_json::to_writer(&mut file, &config_sz)
|
||||
.map_err(|e| format!("Error serializing config: {:?}", e))?;
|
||||
}
|
||||
if let Some(dump_path) = clap_utils::parse_optional::<PathBuf>(lh_matches, "dump-chain-config")?
|
||||
{
|
||||
let chain_config =
|
||||
types::Config::from_chain_spec::<T>(ð2_network_config.chain_spec::<T>()?);
|
||||
let mut file = File::create(dump_path)
|
||||
.map_err(|e| format!("Failed to create dumped chain config: {:?}", e))?;
|
||||
serde_yaml::to_writer(&mut file, &chain_config)
|
||||
.map_err(|e| format!("Error serializing chain config: {:?}", e))?;
|
||||
}
|
||||
|
||||
// Run the boot node
|
||||
if !lh_matches.is_present("immediate-shutdown") {
|
||||
|
||||
Reference in New Issue
Block a user