From 2cb6dde052235f57070050550436197476b25030 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 19 Jan 2023 02:26:54 -0800 Subject: [PATCH] more log improvements --- web3_proxy/src/rpcs/blockchain.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web3_proxy/src/rpcs/blockchain.rs b/web3_proxy/src/rpcs/blockchain.rs index e3505c97..f611c7d9 100644 --- a/web3_proxy/src/rpcs/blockchain.rs +++ b/web3_proxy/src/rpcs/blockchain.rs @@ -865,7 +865,9 @@ impl ConsensusFinder { .await { Err(err) => { - warn!("Unable to find any consensus head: {}", err); + if self.all.rpc_name_to_hash.len() < web3_connections.min_head_rpcs { + debug!("No consensus head yet: {}", err); + } return ConsensusConnections::default(); } Ok(x) => x, @@ -887,6 +889,7 @@ impl ConsensusFinder { error!("CONSENSUS HEAD IS VERY OLD! Backup RPCs did not improve this situation"); x } else { + // TODO: i don't think we need this error. and i doublt we'll ever even get here error!("NO CONSENSUS HEAD!"); ConsensusConnections::default() }