From 8ed71e1cf1b5374809d893f92be644aaef118b79 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 14 Apr 2023 00:36:46 -0700 Subject: [PATCH] more goerli fixes --- web3_proxy/src/rpcs/many.rs | 7 ++++++- web3_proxy/src/rpcs/one.rs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/web3_proxy/src/rpcs/many.rs b/web3_proxy/src/rpcs/many.rs index b964a9d9..229c60ed 100644 --- a/web3_proxy/src/rpcs/many.rs +++ b/web3_proxy/src/rpcs/many.rs @@ -95,6 +95,8 @@ impl Web3Rpcs { let expected_block_time_ms = match chain_id { // ethereum 1 => 12_000, + // ethereum-goerli + 5 => 12_000, // polygon 137 => 2_000, // fantom @@ -103,7 +105,10 @@ impl Web3Rpcs { 42161 => 500, // anything else _ => { - warn!("unexpected chain_id. polling every {} seconds", 10); + warn!( + "unexpected chain_id ({}). polling every {} seconds", + chain_id, 10 + ); 10_000 } }; diff --git a/web3_proxy/src/rpcs/one.rs b/web3_proxy/src/rpcs/one.rs index 6c4f73a8..ae196bd4 100644 --- a/web3_proxy/src/rpcs/one.rs +++ b/web3_proxy/src/rpcs/one.rs @@ -706,7 +706,7 @@ impl Web3Rpc { // this does loop. just only when reconnect is enabled #[allow(clippy::never_loop)] loop { - debug!("subscription loop started"); + trace!("subscription loop started on {}", self); let mut futures = vec![];