Skip to main content

reth_snap_sync/
lib.rs

1#![doc = include_str!("../README.md")]
2#![doc(
3    html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",
4    html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
5    issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
6)]
7#![cfg_attr(not(test), warn(unused_crate_dependencies))]
8
9mod account;
10mod attempt;
11mod bootstrap;
12mod bytecode;
13mod catch_up;
14mod common;
15mod error;
16mod generation;
17mod pivot;
18mod reorg;
19mod repair;
20mod session;
21mod storage;
22mod verify;
23
24#[cfg(test)]
25mod test_utils;
26
27pub use account::{
28    AccountCoverage, AccountRangeDownload, AccountRangeStep, SnapAccountStore, VerifiedRange,
29};
30pub use attempt::{SnapAttemptStore, SnapWrite};
31pub use bootstrap::{
32    SnapBootstrap, SnapBootstrapOutcome, SnapSyncContext, DEFAULT_RANGES_PER_CHECK,
33};
34pub use bytecode::{BytecodeDownload, BytecodeStep, SnapBytecodeStore, DEFAULT_CODE_HASHES};
35pub use catch_up::{
36    BalStateUpdate, BlockAccessListCatchUp, CatchUpProgress, CatchUpStep, DownloadedAccount,
37    SnapCatchUpStore, DEFAULT_BAL_RESPONSE_BYTES, DEFAULT_CATCH_UP_BLOCKS,
38};
39pub use common::{DEFAULT_RESPONSE_BYTES, MAX_HASH};
40pub use error::SnapSyncError;
41pub use generation::{SnapGeneration, SnapPhase};
42pub use pivot::SnapPivotPolicy;
43pub use reorg::SnapReorg;
44pub use repair::StateRepairs;
45pub use session::{SnapSyncSession, SnapSyncSessionState};
46pub use storage::{
47    SnapStorageStore, StorageChunk, StorageProgress, StorageRangeDownload, StorageRangeStep,
48    DEFAULT_REPAIR_SLOTS, DEFAULT_STORAGE_ACCOUNTS,
49};
50pub use verify::{SnapStateVerifier, VerifiedSnapState, DEFAULT_SCAN_CHUNK};