Skip to main content

check_received_duplicate_parameters

Function check_received_duplicate_parameters 

Source
fn check_received_duplicate_parameters(
    parameters: &[KeyValuePair],
    known: &[u64],
) -> Result<(), CodecError>
Expand description

The receiver’s half: refuse a repeated Parameter Type this draft names, and carry a repeat of any other.

known is the registry for the namespace the message uses — Setup or Message. A type outside it is one “Receivers MUST allow duplicates of” covers, and refusing it would close a session over an extension this codec was never told about.