Skip to main content

MAX_BATCH_STORE_HASHES

Constant MAX_BATCH_STORE_HASHES 

Source
pub const MAX_BATCH_STORE_HASHES: usize = 256;
Expand description

Wire-level maximum number of hashes a BatchStoreRequest may carry (ADR 022 §STORE Flow — “Batch size is bounded at 256 hashes”). Applies symmetrically to BatchStoreAck::results (one bool per request hash, same cap so a malicious responder can’t reply with an oversize ack). Enforced at the wire boundary; ADR 022 spells out that oversize batches close the stream with MALFORMED_MESSAGE (0x03) — the decode-time reject here surfaces as that error code via the framing layer.