Function execute

Source
pub fn execute<Ctx>(
    ctx: &mut Ctx,
    msg: MsgRecoverClient,
) -> Result<(), ClientError>
where Ctx: ExecutionContext,
Expand description

Executes the steps needed to recover the subject client, namely:

  • setting the subject’s status from either frozen or expired to active
  • copying the substitute client’s consensus state as the subject’s consensus state
  • setting the subject client’s processed height and processed time values to match the substitute client’s
  • setting the subject client’s latest height, trusting period, and chain ID values to match the substitute client’s