reth_cli_commands::import

Function build_import_pipeline

Source
pub fn build_import_pipeline<N, C, E>(
    config: &Config,
    provider_factory: ProviderFactory<N>,
    consensus: &Arc<C>,
    file_client: Arc<FileClient>,
    static_file_producer: StaticFileProducer<ProviderFactory<N>>,
    disable_exec: bool,
    executor: E,
) -> Result<(Pipeline<N>, impl Stream<Item = NodeEvent>)>
where N: ProviderNodeTypes, C: Consensus + 'static, E: BlockExecutorProvider,
Expand description

Builds import pipeline.

If configured to execute, all stages will run. Otherwise, only stages that don’t require state will run.