Skip to content

Commit

Permalink
skip wait_for_header_validation_delay for near->appchain
Browse files Browse the repository at this point in the history
  • Loading branch information
en committed Dec 24, 2023
1 parent 1bf9053 commit 6d37853
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/relayer/src/foreign_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use crate::chain::client::ClientSettings;
use crate::chain::handle::ChainHandle;
use crate::chain::requests::*;
use crate::chain::tracking::TrackedMsgs;
use crate::chain::ChainType;
use crate::client_state::AnyClientState;
use crate::consensus_state::AnyConsensusState;
use crate::error::Error as RelayerError;
Expand Down Expand Up @@ -1267,7 +1268,11 @@ impl<DstChain: ChainHandle, SrcChain: ChainHandle> ForeignClient<DstChain, SrcCh
)
})?;

self.wait_for_header_validation_delay(&client_state, &header)?;
if self.src_chain().config().unwrap().r#type == ChainType::Near {
warn!("skip wait_for_header_validation_delay for near->appchain");
} else {
self.wait_for_header_validation_delay(&client_state, &header)?;
}

let mut msgs = vec![];

Expand Down

0 comments on commit 6d37853

Please sign in to comment.