Skip to content

Commit

Permalink
ibc: use GTE instead of GT in client height comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
avahowell committed Oct 4, 2023
1 parent 96c6cd9 commit b1dae8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ async fn consensus_height_is_correct<S: StateRead>(
state.get_revision_number().await?,
state.get_block_height().await?,
)?;
if msg.consensus_height_of_a_on_b > current_height {
if msg.consensus_height_of_a_on_b >= current_height {
anyhow::bail!("consensus height is greater than the current block height",);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ async fn consensus_height_is_correct<S: StateRead>(
state.get_revision_number().await?,
state.get_block_height().await?,
)?;
if msg.consensus_height_of_b_on_a > current_height {
if msg.consensus_height_of_b_on_a >= current_height {
anyhow::bail!("consensus height is greater than the current block height",);
}

Expand Down

0 comments on commit b1dae8e

Please sign in to comment.