From 39d843f69a612b40f9efc3cfd0425bd981be9288 Mon Sep 17 00:00:00 2001 From: Naohiro Yoshida Date: Thu, 5 Oct 2023 10:54:04 +0900 Subject: [PATCH] rever degrade Signed-off-by: Naohiro Yoshida --- light-client/src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/light-client/src/client.rs b/light-client/src/client.rs index 7441da2..2011eaf 100644 --- a/light-client/src/client.rs +++ b/light-client/src/client.rs @@ -238,7 +238,7 @@ impl ParliaLightClient { return Err(Error::ClientFrozen(client_id).into()); } let proof_height = *proof_height; - if client_state.latest_height != proof_height { + if client_state.latest_height < proof_height { return Err( Error::UnexpectedLatestHeight(proof_height, client_state.latest_height).into(), );