reth_era_utils/
lib.rs

1//! Utilities to store history from downloaded ERA files with storage-api
2//!  and export it to recreate era1 files.
3//!
4//! The import is downloaded using [`reth_era_downloader`] and parsed using [`reth_era`].
5
6mod history;
7
8/// Export block history data from the database to recreate era1 files.
9mod export;
10
11/// Export history from storage-api between 2 blocks
12/// with parameters defined in [`ExportConfig`].
13pub use export::{export, ExportConfig};
14
15/// Imports history from ERA files.
16pub use history::{
17    build_index, decode, import, open, process, process_iter, save_stage_checkpoints, ProcessIter,
18};