validate_proof_height

Function validate_proof_height 

Source
pub fn validate_proof_height(
    client_state: &ClientState,
    proof_height: Height,
) -> Result<(), ClientError>
Expand description

Validate the given proof height against the client state’s latest height, returning an error if the proof height is greater than the latest height of the client state.

Note that this function is typically implemented as part of the ClientStateCommon trait, but has been made a standalone function in order to make the ClientState APIs more flexible.