pub trait ClientValidationContext {
    // Required methods
    fn client_update_time(
        &self,
        client_id: &ClientId,
        height: &Height
    ) -> Result<Timestamp, ContextError>;
    fn client_update_height(
        &self,
        client_id: &ClientId,
        height: &Height
    ) -> Result<Height, ContextError>;
}
Expand description

Defines the methods available to clients for validating client state transitions. The generic V parameter in crate::client_state::ClientStateValidation must inherit from this trait.

Required Methods§

fn client_update_time( &self, client_id: &ClientId, height: &Height ) -> Result<Timestamp, ContextError>

Returns the time when the client state for the given ClientId was updated with a header for the given Height

fn client_update_height( &self, client_id: &ClientId, height: &Height ) -> Result<Height, ContextError>

Returns the height when the client state for the given ClientId was updated with a header for the given Height

Implementors§