fn finish_validator_config(&self, index: usize, config: &mut NodeConfig) {
        let local_ns = index.to_string() + OPERATOR_NS;

        let genesis_path = TempPath::new();
        genesis_path.create_as_file().unwrap();
        let genesis = self.storage_helper.genesis(genesis_path.path()).unwrap();

        let _ = self
            .storage_helper
            .insert_waypoint(&local_ns, constants::COMMON_NS)
            .unwrap();
        let output = self
            .storage_helper
            .verify_genesis(&local_ns, genesis_path.path())
            .unwrap();
        assert_eq!(output.split("match").count(), 5);

        config.consensus.safety_rules.service = SafetyRulesService::Thread;
        config.consensus.safety_rules.backend = self.secure_backend(&local_ns, "safety-rules");
        config.execution.backend = self.secure_backend(&local_ns, "execution");

        let backend = self.secure_backend(&local_ns, "waypoint");
        config.base.waypoint = WaypointConfig::FromStorage(backend);
        config.execution.genesis = Some(genesis);
        config.execution.genesis_file_location = PathBuf::from("");
    }
/// Operators generate genesis from shared storage and verify against waypoint.
/// Insert the genesis/waypoint into local config.
Operators generate genesis from shared storage and verify against waypoint.
Insert the genesis/waypoint into local config.
Operators generate genesis from shared storage and verify against waypoint . Insert the genesis / waypoint into local config .
fn finish_validator_config(&self, index: usize, config: &mut NodeConfig) {
        let local_ns = index.to_string() + OPERATOR_NS;
        let genesis_path = TempPath::new();
        genesis_path.create_as_file().unwrap();
        let genesis = self.storage_helper.genesis(genesis_path.path()).unwrap();
        let _ = self
            .storage_helper
            .insert_waypoint(&local_ns, constants::COMMON_NS)
            .unwrap();
        let output = self
            .storage_helper
            .verify_genesis(&local_ns, genesis_path.path())
            .unwrap();
        assert_eq!(output.split("match").count(), 5);
        config.consensus.safety_rules.service = SafetyRulesService::Thread;
        config.consensus.safety_rules.backend = self.secure_backend(&local_ns, "safety-rules");
        config.execution.backend = self.secure_backend(&local_ns, "execution");
        let backend = self.secure_backend(&local_ns, "waypoint");
        config.base.waypoint = WaypointConfig::FromStorage(backend);
        config.execution.genesis = Some(genesis);
        config.execution.genesis_file_location = PathBuf::from("");
    }
fn finish_validator_config ( & self , index : usize , config : & mut NodeConfig ) { let local_ns = index . to_string ( ) + OPERATOR_NS ; let genesis_path = TempPath :: new ( ) ; genesis_path . create_as_file ( ) . unwrap ( ) ; let genesis = self . storage_helper . genesis ( genesis_path . path ( ) ) . unwrap ( ) ; let _ = self . storage_helper . insert_waypoint ( & local_ns , constants :: COMMON_NS ) . unwrap ( ) ; let output = self . storage_helper . verify_genesis ( & local_ns , genesis_path . path ( ) ) . unwrap ( ) ; assert_eq ! ( output split ( " " ) count ( ) 5 ) ; config . consensus . safety_rules . service = SafetyRulesService :: Thread ; config . consensus . safety_rules . backend = self . secure_backend ( & local_ns , " " ) ; config . execution . backend = self . secure_backend ( & local_ns , " " ) ; let backend = self . secure_backend ( & local_ns , " " ) ; config . base . waypoint = WaypointConfig :: FromStorage ( backend ) ; config . execution . genesis = Some ( genesis ) ; config . execution . genesis_file_location = PathBuf :: from ( " " ) ; }
Operators generate genesis from shared storage and verify against waypoint.
Operators generate genesis from shared storage and verify against waypoint .
&self
index
usize
config
&mut NodeConfig
&self
index
usize
config
&mut NodeConfig