reth::builder::setup

Function build_networked_pipeline

Source
pub fn build_networked_pipeline<N, Client, Executor>(
    config: &StageConfig,
    client: Client,
    consensus: Arc<dyn Consensus<<Client as HeadersClient>::Header, <Client as BodiesClient>::Body>>,
    provider_factory: ProviderFactory<N>,
    task_executor: &TaskExecutor,
    metrics_tx: UnboundedSender<MetricEvent>,
    prune_config: Option<PruneConfig>,
    max_block: Option<u64>,
    static_file_producer: StaticFileProducer<ProviderFactory<N>>,
    executor: Executor,
    exex_manager_handle: ExExManagerHandle<<N as NodeTypes>::Primitives>,
) -> Result<Pipeline<N>, Report>
where N: ProviderNodeTypes, Client: BlockClient<Header = <<N as NodeTypes>::Primitives as NodePrimitives>::BlockHeader, 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

Constructs a Pipeline that’s wired to the network