Skip to main content

check_record_size

Function check_record_size 

Source
pub const fn check_record_size(
    request: RecordAdmissionEnvelope,
    encoded_record_charge: ResourceVector,
    max_ordinary_record_charge: ResourceVector,
) -> RecordSizeDecision
Expand description

Applies the frozen stage-8 RecordTooLarge selector.

Entries are tested before bytes and equality passes. The function consumes the request envelope so the refusal cannot accidentally name another operation while the success permit retains the exact admitted charge.