Skip to main content

SNAPSHOT_VERSION

Constant SNAPSHOT_VERSION 

Source
pub const SNAPSHOT_VERSION: u32 = 5;
Expand description

Schema version for the snapshot binary format.

This version is embedded in every ExecutionSnapshot via the version field. Readers should check this value to determine whether they can decode a snapshot or need migration logic.

Version history:

  • v5 (current): ValueWord-native serialization — nanboxed_to_serializable and serializable_to_nanboxed operate on ValueWord directly without intermediate ValueWord conversion. Format is wire-compatible with v4 (same SerializableVMValue enum), so v4 snapshots deserialize correctly without migration.