pub(crate) fn is_valid(&self) -> bool {
        let min_era_ms = 1u64 << self.highway_config.minimum_round_exponent;
        // If the era duration is set to zero, we will treat it as explicitly stating that eras
        // should be defined by height only.
        if self.core_config.era_duration.millis() > 0
            && self.core_config.era_duration.millis()
                < self.core_config.minimum_era_height * min_era_ms
        {
            warn!("era duration is less than minimum era height * round length!");
        }

        self.protocol_config.is_valid() && self.highway_config.is_valid()
    }
/// Returns `false` and logs errors if the values set in the config don't make sense.
Returns `false` and logs errors if the values set in the config don't make sense.
Returns ` false ` and logs errors if the values set in the config don ' t make sense .
pub(crate) fn is_valid(&self) -> bool {
        let min_era_ms = 1u64 << self.highway_config.minimum_round_exponent;
        // If the era duration is set to zero, we will treat it as explicitly stating that eras
        // should be defined by height only.
        if self.core_config.era_duration.millis() > 0
            && self.core_config.era_duration.millis()
                < self.core_config.minimum_era_height * min_era_ms
        {
            warn!("era duration is less than minimum era height * round length!");
        }
        self.protocol_config.is_valid() && self.highway_config.is_valid()
    }
pub ( crate ) fn is_valid ( & self ) -> bool { let min_era_ms = 1u64 << self . highway_config . minimum_round_exponent ; // If the era duration is set to zero, we will treat it as explicitly stating that eras // should be defined by height only. if self . core_config . era_duration . millis ( ) > 0 && self . core_config . era_duration . millis ( ) < self . core_config . minimum_era_height * min_era_ms { warn ! ( " " ) ; } self . protocol_config . is_valid ( ) && self . highway_config . is_valid ( ) }
Returns `false` and logs errors if the values set in the config don't make sense.
Returns ` false ` and logs errors if the values set in the config don ' t make sense .
&self
&self