From 608cef7a6a64d9570467b3a454e2ceb2e0ac57cc Mon Sep 17 00:00:00 2001 From: Tornado Contrib Date: Tue, 26 Mar 2024 23:36:19 +0000 Subject: [PATCH] Add networks and extend timeout to 120s --- web3_proxy/src/config.rs | 6 ++++++ web3_proxy/src/jsonrpc/request_builder.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/web3_proxy/src/config.rs b/web3_proxy/src/config.rs index be6981ad..5386dbae 100644 --- a/web3_proxy/src/config.rs +++ b/web3_proxy/src/config.rs @@ -317,6 +317,12 @@ pub fn average_block_interval(chain_id: u64) -> Duration { 31337 => Duration::from_secs(10), // arbitrum 42161 => Duration::from_millis(500), + // gnosis + 100 => Duration::from_secs(5), + // avalanche + 43114 => Duration::from_secs(2), + // sepolia + 11155111 => Duration::from_secs(12), // web3-proxy tests 999_001_999 => Duration::from_secs(10), // anything else diff --git a/web3_proxy/src/jsonrpc/request_builder.rs b/web3_proxy/src/jsonrpc/request_builder.rs index 444a0a28..b374c1ae 100644 --- a/web3_proxy/src/jsonrpc/request_builder.rs +++ b/web3_proxy/src/jsonrpc/request_builder.rs @@ -386,7 +386,7 @@ impl ValidatedRequest { } else if authorization.active_premium().await { Duration::from_secs(295) } else { - Duration::from_secs(60) + Duration::from_secs(120) } .max(connect_timeout);