Skip to main content

WIRE_VERSION

Constant WIRE_VERSION 

Source
pub const WIRE_VERSION: u16 = 3;
Expand description

Current wire-format version. See plans/WIRE_FORMAT.md.

A v3 decoder rejects any preamble whose version field does not match this constant. Bumping the wire version is the single source of truth for backwards incompatibility — every structural format change must bump this.