Files
lighthouse/beacon_node/beacon_chain/src/era/mod.rs
dapplion f368a9a31e Move ERA test vectors to external repo, download at test time
Test vectors are now hosted at dapplion/era-test-vectors and downloaded
via Makefile (same pattern as slashing_protection interchange tests).
2026-03-08 19:42:06 -05:00

19 lines
919 B
Rust

/// ERA file support for importing and exporting historical beacon chain data.
///
/// ERA files store beacon blocks and states in a standardized archive format, enabling
/// efficient distribution of historical chain data between clients. Each ERA file covers
/// one "era" of `SLOTS_PER_HISTORICAL_ROOT` slots (8192 on mainnet) and contains:
/// - All beacon blocks in the slot range
/// - The boundary `BeaconState` at the end of the range
///
/// Verification relies on `historical_roots` (pre-Capella) and `historical_summaries`
/// (post-Capella) which commit to the block and state roots for each era.
///
/// Spec: <https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/beacon-chain.md#historical-roots-updates>
/// Format: <https://github.com/status-im/nimbus-eth2/blob/stable/docs/the_auditors_handbook/src/02.4_the_era_file_format.md>
pub mod consumer;
pub mod producer;
#[cfg(test)]
mod tests;