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 metrics;
18mod pivot;
19mod reorg;
20mod repair;
21mod session;
22mod storage;
23mod verify;
24
25#[cfg(test)]
26mod test_utils;
27
28pub use account::{
29    AccountCoverage, AccountRangeDownload, AccountRangeStep, SnapAccountStore, VerifiedRange,
30};
31pub use attempt::{SnapAttemptStore, SnapWrite};
32pub use bootstrap::{
33    SnapBootstrap, SnapBootstrapOutcome, SnapSyncContext, DEFAULT_RANGES_PER_CHECK,
34};
35pub use bytecode::{BytecodeDownload, BytecodeStep, SnapBytecodeStore, DEFAULT_CODE_HASHES};
36pub use catch_up::{
37    BalStateUpdate, BlockAccessListCatchUp, CatchUpProgress, CatchUpStep, DownloadedAccount,
38    SnapCatchUpStore, DEFAULT_BAL_RESPONSE_BYTES, DEFAULT_CATCH_UP_BLOCKS,
39};
40pub use common::{DEFAULT_RESPONSE_BYTES, MAX_HASH};
41pub use error::SnapSyncError;
42pub use generation::SnapGeneration;
43pub use pivot::{SnapPivotPolicy, DEFAULT_HEAD_DISTANCE};
44pub use reorg::{BlockWithAccessListHash, SnapReorg};
45pub use repair::StateRepairs;
46pub use session::{SnapSyncSession, SnapSyncSessionState};
47pub use storage::{
48    SnapStorageStore, StorageChunk, StorageProgress, StorageRangeDownload, StorageRangeStep,
49    DEFAULT_REPAIR_SLOTS, DEFAULT_STORAGE_ACCOUNTS,
50};
51pub use verify::{SnapStateVerifier, VerifiedSnapState, DEFAULT_SCAN_CHUNK};