pub fn private_request_version(
rpc: PrivateRpc,
image: Option<&MetadataImage>,
) -> i16Expand description
The version of rpc a sender puts in the request header, negotiated from
image, the sender’s current metadata image.
It is KrabkaVersion::finalized(image).max_request_version(rpc). The
fallbacks all land on a version every peer serves:
- With no image (
None), it isPRIVATE_BASELINE_VERSION, v0. - An image that has not finalized
krabka.versionreads as level 0, which gives v0 too. - A level above this build’s
KRABKA_VERSION_MAXsends this build’s highest version. The controller finalized that level because every registered node supports it, and a node that supports a level serves every version below the one it gives.