/// Returns requested state as a Chunkable artifact for StateSync.
Returns requested state as a Chunkable artifact for StateSync.
Returns requested state as a Chunkable artifact for StateSync .
pub fn create_chunkable_state(
        &self,
        id: &StateSyncArtifactId,
    ) -> Box<dyn Chunkable + Send + Sync> {
        info!(self.log, "Starting state sync @{}", id.height);
        Box::new(crate::state_sync::chunkable::IncompleteState::new(
            self.log.clone(),
            id.height,
            id.hash.clone(),
            self.state_layout.clone(),
            self.latest_manifest(),
            self.metrics.state_sync_metrics.clone(),
            self.own_subnet_type,
            Arc::clone(&self.checkpoint_thread_pool),
            self.state_sync_refs.clone(),
        ))
    }
pub fn create_chunkable_state ( & self , id : & StateSyncArtifactId , ) -> Box < dyn Chunkable + Send + Sync > { info ! ( self log " " id height ) ; Box :: new ( crate :: state_sync :: chunkable :: IncompleteState :: new ( self . log . clone ( ) , id . height , id . hash . clone ( ) , self . state_layout . clone ( ) , self . latest_manifest ( ) , self . metrics . state_sync_metrics . clone ( ) , self . own_subnet_type , Arc :: clone ( & self . checkpoint_thread_pool ) , self . state_sync_refs . clone ( ) , ) ) }
Returns requested state as a Chunkable artifact for StateSync.
Returns requested state as a Chunkable artifact for StateSync .
&self
id
&StateSyncArtifactId