From 6c8f4351a2df1bbf79b314990664531e89c649e1 Mon Sep 17 00:00:00 2001 From: kylezs Date: Tue, 10 Oct 2023 17:13:03 +1100 Subject: [PATCH] chore: reduce number of retries of a broadcast (#4083) --- engine/src/btc/retry_rpc.rs | 2 +- engine/src/dot/retry_rpc.rs | 2 +- engine/src/eth/retry_rpc.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/src/btc/retry_rpc.rs b/engine/src/btc/retry_rpc.rs index a756024c84..3634b1e7a6 100644 --- a/engine/src/btc/retry_rpc.rs +++ b/engine/src/btc/retry_rpc.rs @@ -21,7 +21,7 @@ pub struct BtcRetryRpcClient { const BITCOIN_RPC_TIMEOUT: Duration = Duration::from_millis(4 * 1000); const MAX_CONCURRENT_SUBMISSIONS: u32 = 100; -const MAX_BROADCAST_RETRIES: Attempt = 5; +const MAX_BROADCAST_RETRIES: Attempt = 2; impl BtcRetryRpcClient { pub async fn new( diff --git a/engine/src/dot/retry_rpc.rs b/engine/src/dot/retry_rpc.rs index da447a3cf0..3aa1c98028 100644 --- a/engine/src/dot/retry_rpc.rs +++ b/engine/src/dot/retry_rpc.rs @@ -38,7 +38,7 @@ pub struct DotRetryRpcClient { const POLKADOT_RPC_TIMEOUT: Duration = Duration::from_millis(4 * 1000); const MAX_CONCURRENT_SUBMISSIONS: u32 = 20; -const MAX_BROADCAST_RETRIES: Attempt = 5; +const MAX_BROADCAST_RETRIES: Attempt = 2; impl DotRetryRpcClient { pub fn new( diff --git a/engine/src/eth/retry_rpc.rs b/engine/src/eth/retry_rpc.rs index 28606f9ed8..caffc91f53 100644 --- a/engine/src/eth/retry_rpc.rs +++ b/engine/src/eth/retry_rpc.rs @@ -34,7 +34,7 @@ pub struct EthersRetryRpcClient { const ETHERS_RPC_TIMEOUT: Duration = Duration::from_millis(4 * 1000); const MAX_CONCURRENT_SUBMISSIONS: u32 = 100; -const MAX_BROADCAST_RETRIES: Attempt = 5; +const MAX_BROADCAST_RETRIES: Attempt = 2; impl EthersRetryRpcClient { pub fn new(