Skip to main content Crate spaces_checkpoint Copy item path Source integrity Checkpoint CheckpointError CHECKPOINT_BASE_URL CHECKPOINT_FILES The three spaced database files included in a checkpoint. build_checkpoint Build a checkpoint archive from a spaced data directory.
Returns the SHA-256 digest of the produced archive. ensure_checkpoint Downloads and extracts a checkpoint.
Retries with exponential backoff on transient errors.
Returns Ok(false) if the checkpoint server is unreachable after retries,
allowing the caller to fall back to syncing from scratch.
Returns Ok(true) if checkpoint was applied. fetch_latest Fetch the latest checkpoint metadata from <base_url>/latest.json.
Returns None if the server is unreachable. format_integrity_file Format the integrity.rs file content with the checkpoint function. needs_checkpoint Returns true if no spaced data exists and a checkpoint should be applied. read_tip Read the tip (block hash + height) from a spaced data directory
by inspecting the latest snapshot metadata in root.sdb. write_integrity Write the checkpoint constant to checkpoint/src/integrity.rs relative to
the current working directory. Must be run from the workspace root. write_integrity_to Write the checkpoint constant to a Rust source file at path. ProgressFn Progress callback: (downloaded_bytes, total_bytes).
total_bytes is 0 if the server didn’t send Content-Length.