SNAPSHOT_MAX

Constant SNAPSHOT_MAX 

Source
pub const SNAPSHOT_MAX: usize = 1792;
Expand description

Largest encoded snapshot the session produces (see Session::encode_snapshot); sized for every table at capacity with headroom for future properties.

Every table at capacity currently encodes to 972 octets, option framing included (snapshot_at_capacity_fits_the_buffer pins it); the rest is headroom for properties not yet allocated. A persisted table of public keys costs about 272 octets at capacity, so there is room for three more before this has to grow, and it can only grow to umsh_journal_store::proto::MAX_PAYLOAD — 2029 — before the journal record format itself has to change.