Skip to content

Commit

Permalink
rever degrade
Browse files Browse the repository at this point in the history
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
  • Loading branch information
Naohiro Yoshida committed Oct 5, 2023
1 parent c622610 commit 39d843f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion light-client/src/client.rs
Original file line number Diff line number Diff line change
@@ -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(),
);

0 comments on commit 39d843f

Please sign in to comment.