Skip to main content

max_membership_values

Function max_membership_values 

Source
fn max_membership_values(max_payload_bytes: usize) -> usize
Expand description

Upper bound on how many IN list literals max_payload_bytes can hold.

The count bound is derived from the transport budget with MIN_ENCODED_LITERAL_BYTES rather than being an arbitrary cap: a larger budget admits proportionally more build keys, and a small budget refuses the membership before a single literal is built.