Skip to content

Commit

Permalink
Compilation fixes after detector update
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Apr 20, 2023
1 parent 558d0b0 commit 17ba1b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/relayer/src/light_client/tendermint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ impl super::LightClient<CosmosSdkChain> for LightClient {
})) => {
warn!("misbehavior detected, reporting evidence to RPC witness node and primary chain");

match detector::report_evidence(self.io.rpc_client().clone(), evidence) {
match detector::report_evidence(
self.io.rpc_client().clone(),
evidence.against_primary,
) {
Ok(hash) => warn!("evidence reported to RPC witness node with hash: {hash}"),
Err(e) => error!("failed to report evidence to RPC witness node: {}", e),
}
Expand Down
1 change: 1 addition & 0 deletions crates/relayer/src/light_client/tendermint/detector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pub fn detect(
let mut provider = make_provider(peer_id, rpc_client, client_state, trusted_block, now)?;

let divergence = block_on(detect_divergence(
None,
&mut provider,
primary_trace,
options.clock_drift,
Expand Down

0 comments on commit 17ba1b5

Please sign in to comment.