validate_chain

Function validate_chain 

Source
pub fn validate_chain(
    placement: &DecodedEntity,
    decoder: &mut EntityDecoder<'_>,
    policy: &ChainPolicy,
) -> PlacementResult<()>
Expand description

Walk placement up to the root and check every link against policy. A broken rule is PlacementError::Policy, a consumer’s limit rather than bad input, so it is not counted as a refused record.