pub(crate) async fn into_participating_config(self) -> Result<ParticipatingInitConfig, Error> {
        let maybe_latest_block_header = self.linear_chain_sync.into_maybe_latest_block_header();
        // Clean the state of the linear_chain_sync before shutting it down.
        #[cfg(not(feature = "fast-sync"))]
        linear_chain_sync::clean_linear_chain_state(
            &self.storage,
            self.chainspec_loader.chainspec(),
        )?;
        let config = ParticipatingInitConfig {
            root: self.root,
            chainspec_loader: self.chainspec_loader,
            config: self.config,
            contract_runtime: self.contract_runtime,
            storage: self.storage,
            maybe_latest_block_header,
            event_stream_server: self.event_stream_server,
            small_network_identity: SmallNetworkIdentity::from(&self.small_network),
            node_startup_instant: self.node_startup_instant,
        };
        self.small_network.finalize().await;
        self.rest_server.finalize().await;
        Ok(config)
    }
/// Deconstructs the reactor into config useful for creating a Validator reactor. Shuts down
/// the network, closing all incoming and outgoing connections, and frees up the listening
/// socket.
Deconstructs the reactor into config useful for creating a Validator reactor. Shuts down
the network, closing all incoming and outgoing connections, and frees up the listening
socket.
Deconstructs the reactor into config useful for creating a Validator reactor . Shuts down the network closing all incoming and outgoing connections and frees up the listening socket .
pub(crate) async fn into_participating_config(self) -> Result<ParticipatingInitConfig, Error> {
        let maybe_latest_block_header = self.linear_chain_sync.into_maybe_latest_block_header();
        // Clean the state of the linear_chain_sync before shutting it down.
        #[cfg(not(feature = "fast-sync"))]
        linear_chain_sync::clean_linear_chain_state(
            &self.storage,
            self.chainspec_loader.chainspec(),
        )?;
        let config = ParticipatingInitConfig {
            root: self.root,
            chainspec_loader: self.chainspec_loader,
            config: self.config,
            contract_runtime: self.contract_runtime,
            storage: self.storage,
            maybe_latest_block_header,
            event_stream_server: self.event_stream_server,
            small_network_identity: SmallNetworkIdentity::from(&self.small_network),
            node_startup_instant: self.node_startup_instant,
        };
        self.small_network.finalize().await;
        self.rest_server.finalize().await;
        Ok(config)
    }
pub ( crate ) async fn into_participating_config ( self ) -> Result < ParticipatingInitConfig , Error > { let maybe_latest_block_header = self . linear_chain_sync . into_maybe_latest_block_header ( ) ; // Clean the state of the linear_chain_sync before shutting it down. # [ cfg ( not ( feature " " ) ) ] linear_chain_sync :: clean_linear_chain_state ( & self . storage , self . chainspec_loader . chainspec ( ) , ) ? ; let config = ParticipatingInitConfig { root : self . root , chainspec_loader : self . chainspec_loader , config : self . config , contract_runtime : self . contract_runtime , storage : self . storage , maybe_latest_block_header , event_stream_server : self . event_stream_server , small_network_identity : SmallNetworkIdentity :: from ( & self . small_network ) , node_startup_instant : self . node_startup_instant , } ; self . small_network . finalize ( ) . await ; self . rest_server . finalize ( ) . await ; Ok ( config ) }
Deconstructs the reactor into config useful for creating a Validator reactor.
Deconstructs the reactor into config useful for creating a Validator reactor .
self
self