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
orexpired
toactive
- 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