pub fn build_pipeline<N, H, B, Executor>(
provider_factory: ProviderFactory<N>,
stage_config: &StageConfig,
header_downloader: H,
body_downloader: B,
consensus: Arc<dyn Consensus<<H as HeaderDownloader>::Header, <B as BodyDownloader>::Body>>,
max_block: Option<u64>,
metrics_tx: UnboundedSender<MetricEvent>,
prune_config: Option<PruneConfig>,
static_file_producer: StaticFileProducer<ProviderFactory<N>>,
executor: Executor,
exex_manager_handle: ExExManagerHandle<<N as NodeTypes>::Primitives>,
) -> Result<Pipeline<N>, Report>where
N: ProviderNodeTypes,
H: HeaderDownloader<Header = <<N as NodeTypes>::Primitives as NodePrimitives>::BlockHeader> + 'static,
B: BodyDownloader<Body = <<N as NodeTypes>::Primitives as NodePrimitives>::BlockBody> + 'static,
Executor: BlockExecutorProvider<Primitives = <N as NodeTypes>::Primitives>,
<N as NodeTypes>::Primitives: NodePrimitives<BlockHeader = Header>,
Expand description
Builds the Pipeline with the given ProviderFactory
and downloaders.