Skip to main content

Module replay

Module replay 

Expand description

Replay harness implementing JOURNAL_SPEC §9.2.

replay reads events from a JournalReader (or any iterator), feeds them through the pure reduce function, and returns the final PortfolioState with its deterministic hash.

Structs§

CheckpointData
Pre-loaded checkpoint state used to skip early events during replay.
ReplayConfig
Configuration for a replay run.
ReplayResult
Result of a successful replay.

Functions§

load_checkpoint_data
Deserialize a [Checkpoint] snapshot and validate the hash.
replay
Replay events from an iterator through the reducer.
replay_from_journal
Replay directly from a journal file.
scan_last_checkpoint
Scan a journal file forward and return the last [Checkpoint] event found.