mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-19 21:04:41 +00:00
Fix issues when starting with mainnet spec (#674)
* Update lcli to parse spec at boot, remove pycli * Fix issues when starting with mainnet spec * Set default spec to mainnet * Ensure ETH1_FOLLOW_DISTANCE is in YamlConfig * Set testnet ETH1_FOLLOW_DISTANCE to 16 * Set testnet min validator count * Add validator count CLI flag to lcli contract deploy * Extend genesis delay time
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
use clap::ArgMatches;
|
||||
use serde::Serialize;
|
||||
use ssz::Decode;
|
||||
use types::{BeaconBlock, BeaconState, MinimalEthSpec};
|
||||
use types::{BeaconBlock, BeaconState, EthSpec};
|
||||
|
||||
pub fn run_parse_hex(matches: &ArgMatches) -> Result<(), String> {
|
||||
pub fn run_parse_hex<T: EthSpec>(matches: &ArgMatches) -> Result<(), String> {
|
||||
let type_str = matches
|
||||
.value_of("type")
|
||||
.ok_or_else(|| "No type supplied".to_string())?;
|
||||
@@ -22,8 +22,8 @@ pub fn run_parse_hex(matches: &ArgMatches) -> Result<(), String> {
|
||||
info!("Type: {:?}", type_str);
|
||||
|
||||
match type_str {
|
||||
"block" => decode_and_print::<BeaconBlock<MinimalEthSpec>>(&hex)?,
|
||||
"state" => decode_and_print::<BeaconState<MinimalEthSpec>>(&hex)?,
|
||||
"block" => decode_and_print::<BeaconBlock<T>>(&hex)?,
|
||||
"state" => decode_and_print::<BeaconState<T>>(&hex)?,
|
||||
other => return Err(format!("Unknown type: {}", other)),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user