pub fn check_registry_outdated(&self) -> Result<(), String> {
        if let Some(reader) = &self.local_store_time_reader {
            let registry_time = reader.read_certified_time();
            let current_time = self.time_source.get_relative_time();
            if registry_time + HALT_AFTER_REGISTRY_UNREACHABLE < current_time {
                return Err(format!(
                    "registry time: {:?}, current_time: {:?}",
                    registry_time, current_time
                ));
            }
        }
        Ok(())
    }
/// check whether the subnet should halt because it has not reached
/// the registry in a long time
check whether the subnet should halt because it has not reached
the registry in a long time
check whether the subnet should halt because it has not reached the registry in a long time
pub fn check_registry_outdated(&self) -> Result<(), String> {
        if let Some(reader) = &self.local_store_time_reader {
            let registry_time = reader.read_certified_time();
            let current_time = self.time_source.get_relative_time();
            if registry_time + HALT_AFTER_REGISTRY_UNREACHABLE < current_time {
                return Err(format!(
                    "registry time: {:?}, current_time: {:?}",
                    registry_time, current_time
                ));
            }
        }
        Ok(())
    }
pub fn check_registry_outdated ( & self ) -> Result < ( ) , String > { if let Some ( reader ) = & self . local_store_time_reader { let registry_time = reader . read_certified_time ( ) ; let current_time = self . time_source . get_relative_time ( ) ; if registry_time + HALT_AFTER_REGISTRY_UNREACHABLE < current_time { return Err ( format ! ( " " registry_time current_time ) ) ; } } Ok ( ( ) ) }
check whether the subnet should halt because it has not reached
the registry in a long time
check whether the subnet should halt because it has not reached the registry in a long time
&self
&self