Skip to main content

OLDEST_READABLE_VERSION

Constant OLDEST_READABLE_VERSION 

Source
pub const OLDEST_READABLE_VERSION: u32 = 2;
Expand description

The oldest document version this build reads.

Every version from here to STATE_VERSION is read and carried forward on the way in, which is how onevcs’s own registry document treats its older versions: what separates a readable older version from a refused one is whether its every field still means here what it meant there. 2 to 3 added a field and changed none, so a version 2 document reads as one whose change requests were opened with no body — which is what they were.

1 is refused rather than read for the opposite reason: it describes a provider that could not publish, and every session in it would read back as open — a wrong answer where a journey asserting on a session it had closed needs a refusal.