fn default() -> Self {
        // WARNING: these directory defaults should be always overwritten with parameters from cli
        // for specific networks.
        let base_dir = dirs::home_dir()
            .unwrap_or_else(|| PathBuf::from("."))
            .join(DEFAULT_ROOT_DIR)
            .join(DEFAULT_HARDCODED_NETWORK);
        let validator_dir = base_dir.join(DEFAULT_VALIDATOR_DIR);
        let secrets_dir = base_dir.join(DEFAULT_SECRET_DIR);
        Self {
            validator_dir,
            secrets_dir,
            beacon_nodes: vec![DEFAULT_BEACON_NODE.to_string()],
            allow_unsynced_beacon_node: false,
            disable_auto_discover: false,
            init_slashing_protection: false,
            graffiti: None,
            graffiti_file: None,
            http_api: <_>::default(),
            http_metrics: <_>::default(),
        }
    }
/// Build a new configuration from defaults.
Build a new configuration from defaults.
Build a new configuration from defaults .
fn default() -> Self {
        // WARNING: these directory defaults should be always overwritten with parameters from cli
        // for specific networks.
        let base_dir = dirs::home_dir()
            .unwrap_or_else(|| PathBuf::from("."))
            .join(DEFAULT_ROOT_DIR)
            .join(DEFAULT_HARDCODED_NETWORK);
        let validator_dir = base_dir.join(DEFAULT_VALIDATOR_DIR);
        let secrets_dir = base_dir.join(DEFAULT_SECRET_DIR);
        Self {
            validator_dir,
            secrets_dir,
            beacon_nodes: vec![DEFAULT_BEACON_NODE.to_string()],
            allow_unsynced_beacon_node: false,
            disable_auto_discover: false,
            init_slashing_protection: false,
            graffiti: None,
            graffiti_file: None,
            http_api: <_>::default(),
            http_metrics: <_>::default(),
        }
    }
fn default ( ) -> Self { // WARNING: these directory defaults should be always overwritten with parameters from cli // for specific networks. let base_dir = dirs :: home_dir ( ) . unwrap_or_else ( | | PathBuf :: from ( " " ) ) . join ( DEFAULT_ROOT_DIR ) . join ( DEFAULT_HARDCODED_NETWORK ) ; let validator_dir = base_dir . join ( DEFAULT_VALIDATOR_DIR ) ; let secrets_dir = base_dir . join ( DEFAULT_SECRET_DIR ) ; Self { validator_dir , secrets_dir , beacon_nodes : vec ! [ DEFAULT_BEACON_NODE to_string ( ) ] , allow_unsynced_beacon_node : false , disable_auto_discover : false , init_slashing_protection : false , graffiti : None , graffiti_file : None , http_api : < _ > :: default ( ) , http_metrics : < _ > :: default ( ) , } }
Build a new configuration from defaults.
Build a new configuration from defaults .