Skip to content

Commit

Permalink
optimize justifications before they're included into complex transact…
Browse files Browse the repository at this point in the history
…ion (#1949)
  • Loading branch information
svyatonik authored and bkchr committed Apr 10, 2024
1 parent f4ca16b commit a4a6902
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bridges/relays/lib-substrate-relay/src/on_demand/headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ impl<P: SubstrateFinalitySyncPipeline> OnDemandRelay<P::SourceChain, P::TargetCh
let (header, proof) = finality_source.prove_block_finality(required_header).await?;
let header_id = header.id();

// optimize justification before including it into the call
let proof = P::FinalityEngine::optimize_proof(&self.target_client, &header, proof).await?;

log::debug!(
target: "bridge",
"[{}] Requested to prove {} head {:?}. Selected to prove {} head {:?}",
Expand Down

0 comments on commit a4a6902

Please sign in to comment.