diff --git a/crates/core/component/ibc/src/component/msg_handler/connection_open_ack.rs b/crates/core/component/ibc/src/component/msg_handler/connection_open_ack.rs index 26980c7072..a4405e41ad 100644 --- a/crates/core/component/ibc/src/component/msg_handler/connection_open_ack.rs +++ b/crates/core/component/ibc/src/component/msg_handler/connection_open_ack.rs @@ -195,7 +195,7 @@ async fn consensus_height_is_correct( 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",); } diff --git a/crates/core/component/ibc/src/component/msg_handler/connection_open_try.rs b/crates/core/component/ibc/src/component/msg_handler/connection_open_try.rs index f68b911861..49547223fa 100644 --- a/crates/core/component/ibc/src/component/msg_handler/connection_open_try.rs +++ b/crates/core/component/ibc/src/component/msg_handler/connection_open_try.rs @@ -204,7 +204,7 @@ async fn consensus_height_is_correct( 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",); }