mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-07-24 08:33:16 +00:00
Decentralized-sequencing foundation: a shared chain_state crate (two-tier head/final ChainState, apply_block, AcceptOutcome, StallReason, and the absorbed channel-consistency machinery), turn-gated block production, the publisher follow path for adopted/orphaned/finalized peer blocks, and persistence that keeps disk order equal to apply order under the chain lock. Rebased onto dev after #600/#606: chain_consistency is absorbed into chain_state, the sequencer bootstrap's verify_and_reconstruct is re-wired onto the two-tier ChainState (reconstruction applies channel history through the final tier and persists via the follow-path primitives), and test fixtures adopt the SequencerSetup builder extended with with_bedrock_signing_key. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
18 lines
661 B
Rust
18 lines
661 B
Rust
//! Storage-free chain-state core shared by the LEZ sequencer and indexer:
|
|
//! the [`apply_block`] entry point plus [`BlockIngestError`], [`StallReason`],
|
|
//! [`Tip`], and [`AcceptOutcome`]. See [`ChainState`] for the two-tier model.
|
|
|
|
pub use apply::{AcceptOutcome, Tip, apply_block, apply_block_to_state, validate_against_tip};
|
|
pub use chain::{ChainState, HeadEntry};
|
|
pub use consistency::{
|
|
Anchor, AnchorConsistencyCheck, ChainConsistency, ChainMismatch, verify_chain_consistency,
|
|
};
|
|
pub use ingest_error::BlockIngestError;
|
|
pub use stall_reason::StallReason;
|
|
|
|
pub mod apply;
|
|
pub mod chain;
|
|
pub mod consistency;
|
|
pub mod ingest_error;
|
|
pub mod stall_reason;
|