diff --git a/bridges/relays/lib-substrate-relay/src/on_demand_headers.rs b/bridges/relays/lib-substrate-relay/src/on_demand_headers.rs index 5f98d1441d64e..1bd0b0b729c48 100644 --- a/bridges/relays/lib-substrate-relay/src/on_demand_headers.rs +++ b/bridges/relays/lib-substrate-relay/src/on_demand_headers.rs @@ -116,6 +116,7 @@ async fn background_task( P::TransactionSignScheme: TransactionSignScheme, { let relay_task_name = on_demand_headers_relay_name::(); + let target_transactions_mortality = target_transaction_params.transactions_mortality; let mut finality_source = SubstrateFinalitySource::

::new( source_client.clone(), Some(required_header_number.clone()), @@ -222,7 +223,7 @@ async fn background_task( recent_finality_proofs_limit: RECENT_FINALITY_PROOFS_LIMIT, stall_timeout: relay_substrate_client::transaction_stall_timeout( target_transactions_mortality, - TargetChain::AVERAGE_BLOCK_INTERVAL, + P::TargetChain::AVERAGE_BLOCK_INTERVAL, STALL_TIMEOUT, ), only_mandatory_headers,