You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if not_updated_during < source.common_state().client_update_interval{
311
-
log::debug!(target:"hyperspace","Sending only mandatory updates, not updated during {} seconds, need {}", not_updated_during.as_secs(), sink.common_state().client_update_interval.as_secs());
312
+
log::error!(target:"hyperspace","Sending only mandatory updates, not updated during {} seconds, need {}", not_updated_during.as_secs(), sink.common_state().client_update_interval.as_secs());
312
313
update_delay_passed = false;
313
314
}
314
315
}else{
315
-
log::warn!(target:"hyperspace","Update time is from the future: {}", update_time);
316
+
log::error!(target:"hyperspace","Update time is from the future: {}", update_time);
316
317
}
317
318
318
-
log::debug!(target:"hyperspace","Received' {} client updates from {}", mandatory_updates.len(), source.name(),);
319
+
log::error!(target:"hyperspace","Received' {} client updates from {}", mandatory_updates.len(), source.name(),);
// If sink does not have a client height that is equal to or greater than the packet
312
313
// creation height, we can't send it yet, packet_info.height should represent the packet
313
314
// creation height on source chain
314
-
if packet_height > latest_source_height_on_sink.revision_height{
315
+
316
+
if source.get_proof_height(Height::new(source_height.revision_number, packet_height)).await.revision_height > latest_source_height_on_sink.revision_height{
315
317
// Sink does not have client update required to prove recv packet message
316
318
log::debug!(target:"hyperspace","Skipping packet as sink does not have client update required to prove recv packet message: {:?}", packet);
let ack_height = acknowledgement.height.ok_or_else(|| {
440
442
Error::Custom(format!("Packet height not found for packet {packet:?}"))
441
443
})?;
442
-
if ack_height > latest_source_height_on_sink.revision_height{
444
+
445
+
if source.get_proof_height(Height::new(source_height.revision_number, ack_height)).await.revision_height > latest_source_height_on_sink.revision_height{
446
+
// if ack_height > latest_source_height_on_sink.revision_height {
443
447
// Sink does not have client update required to prove acknowledgement packet message
444
448
log::trace!(target:"hyperspace","Skipping acknowledgement for packet {:?} as sink does not have client update required to prove acknowledgement packet message", packet);
0 commit comments