Skip to content

Commit

Permalink
chore: reduce number of retries of a broadcast (#4083)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezs authored Oct 10, 2023
1 parent 1393e82 commit 6c8f435
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engine/src/btc/retry_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion engine/src/dot/retry_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion engine/src/eth/retry_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6c8f435

Please sign in to comment.