We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02785e4 commit 6e09f66Copy full SHA for 6e09f66
crates/core/component/ibc/src/component/packet.rs
@@ -155,14 +155,12 @@ pub trait SendPacketRead: StateRead {
155
156
// check that the timeout timestamp hasn't already passed in the local client tracking
157
// the receiving chain
158
- let chain_ts = self
159
- .get_client_update_time(&connection.client_id, &latest_height)
160
- .await?;
161
- if packet.timeout_timestamp <= chain_ts.nanoseconds() {
+ let chain_ts = latest_consensus_state.timestamp.unix_timestamp_nanos() as u64;
+ if packet.timeout_timestamp <= chain_ts {
162
anyhow::bail!(
163
"timeout timestamp {} is less than the latest timestamp on the counterparty {}",
164
packet.timeout_timestamp,
165
- chain_ts.nanoseconds(),
+ chain_ts,
166
);
167
}
168
0 commit comments