From a487ce51492205a731c224e17ee8f1d44398e566 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 1 Sep 2023 17:01:59 -0700 Subject: [PATCH] skip backups unless backups are needed for ranked_rpcs to exist --- web3_proxy/src/rpcs/consensus.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web3_proxy/src/rpcs/consensus.rs b/web3_proxy/src/rpcs/consensus.rs index 6a4a76ea..5597c50f 100644 --- a/web3_proxy/src/rpcs/consensus.rs +++ b/web3_proxy/src/rpcs/consensus.rs @@ -300,6 +300,11 @@ impl RankedRpcs { return false; } + if rpc.backup && !self.backups_needed { + // skip backups unless backups are needed for ranked_rpcs to exist + return false; + } + if let Some(min_block_needed) = min_block_needed { if !self.has_block_data(rpc, min_block_needed) { trace!(