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
  • Loading branch information
svyatonik authored and serban300 committed Apr 9, 2024
1 parent a632a75 commit b38a0d0
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 b38a0d0

Please sign in to comment.