Expand description
Built-in StageSet
s.
The easiest set to use is DefaultStages
, which provides all stages required to run an
instance of reth.
It is also possible to run parts of reth standalone given the required data is present in
the environment, such as ExecutionStages
or HashingStages
.
§Examples
let provider_factory = create_test_provider_factory();
let static_file_producer =
StaticFileProducer::new(provider_factory.clone(), PruneModes::default());
// Build a pipeline with all offline stages.
let pipeline = Pipeline::<MockNodeTypesWithDB>::builder()
.add_stages(OfflineStages::new(exec, StageConfig::default(), PruneModes::default()))
.build(provider_factory, static_file_producer);
Structs§
- A set containing all stages to run a fully syncing instance of reth.
- A set containing all stages that are required to execute pre-existing block data.
- A set containing all stages that hash account state.
- A set containing all stages that do additional indexing for historical state.
- A set containing all stages that do not require network access.
- A set containing all stages that require network access by default.