Module Snapshots.Header

type version =
  1. | V0

Versioning of snapshot format. Only one version for now.

type t = {
  1. version : version;
  2. history_mode : Configuration.history_mode;
  3. address : Octez_smart_rollup.Address.t;
  4. head_level : int32;
  5. last_commitment : Octez_smart_rollup.Commitment.Hash.t;
}

Snapshot metadata for version 0. This information is written as a header of the archive snapshot file.

Fixed size metadata encoding.