Skip to content

Commit

Permalink
120 second pending TX timeout for relays
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBolten committed Jul 13, 2022
1 parent 000d998 commit 95b0eb6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions orchestrator/relayer/src/main_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use std::{time::Duration};
use tonic::transport::Channel;

pub const LOOP_SPEED: Duration = Duration::from_secs(17);
pub const PENDING_TX_TIMEOUT: Duration = Duration::from_secs(120);

/// This function contains the orchestrator primary loop, it is broken out of the main loop so that
/// it can be called in the test runner for easier orchestration of multi-node tests
Expand Down Expand Up @@ -50,7 +51,7 @@ pub async fn relayer_main_loop(
&mut grpc_client,
gravity_contract_address,
gravity_id.clone(),
LOOP_SPEED,
PENDING_TX_TIMEOUT,
eth_gas_price_multiplier,
eth_gas_multiplier,
)
Expand All @@ -62,7 +63,7 @@ pub async fn relayer_main_loop(
&mut grpc_client,
gravity_contract_address,
gravity_id.clone(),
LOOP_SPEED,
PENDING_TX_TIMEOUT,
eth_gas_price_multiplier,
eth_gas_multiplier,
)
Expand All @@ -74,7 +75,7 @@ pub async fn relayer_main_loop(
&mut grpc_client,
gravity_contract_address,
gravity_id.clone(),
LOOP_SPEED,
PENDING_TX_TIMEOUT,
eth_gas_price_multiplier,
eth_gas_multiplier,
&mut logic_call_skips,
Expand Down

0 comments on commit 95b0eb6

Please sign in to comment.