pub(crate) fn commit_genesis(
        &self,
        chainspec: &Chainspec,
    ) -> Result<GenesisSuccess, engine_state::Error> {
        let correlation_id = CorrelationId::new();
        let genesis_config_hash = chainspec.hash();
        let protocol_version = chainspec.protocol_config.version;
        // Transforms a chainspec into a valid genesis config for execution engine.
        let ee_config = chainspec.into();
        self.engine_state.commit_genesis(
            correlation_id,
            genesis_config_hash,
            protocol_version,
            &ee_config,
        )
    }
/// Commits a genesis using a chainspec
Commits a genesis using a chainspec
Commits a genesis using a chainspec
pub(crate) fn commit_genesis(
        &self,
        chainspec: &Chainspec,
    ) -> Result<GenesisSuccess, engine_state::Error> {
        let correlation_id = CorrelationId::new();
        let genesis_config_hash = chainspec.hash();
        let protocol_version = chainspec.protocol_config.version;
        // Transforms a chainspec into a valid genesis config for execution engine.
        let ee_config = chainspec.into();
        self.engine_state.commit_genesis(
            correlation_id,
            genesis_config_hash,
            protocol_version,
            &ee_config,
        )
    }
pub ( crate ) fn commit_genesis ( & self , chainspec : & Chainspec , ) -> Result < GenesisSuccess , engine_state :: Error > { let correlation_id = CorrelationId :: new ( ) ; let genesis_config_hash = chainspec . hash ( ) ; let protocol_version = chainspec . protocol_config . version ; // Transforms a chainspec into a valid genesis config for execution engine. let ee_config = chainspec . into ( ) ; self . engine_state . commit_genesis ( correlation_id , genesis_config_hash , protocol_version , & ee_config , ) }
Commits a genesis using a chainspec
Commits a genesis using a chainspec
&self
chainspec
&Chainspec
&self
chainspec
&Chainspec