Crate reth_stages

Source
Expand description

Staged syncing primitives for reth.

This crate contains the syncing primitives Pipeline and Stage, as well as all stages that reth uses to sync.

A pipeline can be configured using Pipeline::builder().

For ease of use, this crate also exposes a set of StageSets, which are collections of stages that perform specific functions during sync. Stage sets can be customized; it is possible to add, disable and replace stages in the set.

§Examples

// Create a pipeline that can fully sync
Pipeline::<MockNodeTypesWithDB>::builder()
    .with_tip_sender(tip_tx)
    .add_stages(DefaultStages::new(
        provider_factory.clone(),
        tip_rx,
        consensus,
        headers_downloader,
        bodies_downloader,
        executor_provider,
        StageConfig::default(),
        PruneModes::default(),
    ))
    .build(provider_factory, static_file_producer);

§Feature Flags

  • test-utils: Export utilities for testing

Modules§

Structs§

Enums§

Traits§

Type Aliases§