Skip to main content

reth_era/common/
mod.rs

1//! Common utilities and shared functionality.
2
3pub mod compression;
4pub mod decode;
5pub mod file_ops;
6
7/// Maximum number of entries per e2store era file.
8///
9/// One value for every era format: `.era` files store one beacon block per slot, and
10/// `.ere`/`.era1` files cap their block count at the same number so the header-record accumulator
11/// (`List[HeaderRecord, 8192]`) stays within its SSZ size limit. Numerically this is the beacon
12/// chain `SLOTS_PER_HISTORICAL_ROOT`.
13pub const MAX_ENTRIES_PER_ERA: u64 = 8192;