From 8080794a8b97fb3fc956511f74b21c6e156aec40 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 5 Sep 2022 16:29:21 +0000 Subject: [PATCH] skip dupes earlier --- web3_proxy/src/rpcs/blockchain.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web3_proxy/src/rpcs/blockchain.rs b/web3_proxy/src/rpcs/blockchain.rs index 2fff25ee..3e99cbdc 100644 --- a/web3_proxy/src/rpcs/blockchain.rs +++ b/web3_proxy/src/rpcs/blockchain.rs @@ -331,6 +331,11 @@ impl Web3Connections { // find all rpcs with maybe_head_block as their current head for (conn_name, conn_head_hash) in connection_heads.iter() { if conn_head_hash != maybe_head_hash { + // connection is not on the desired block + continue; + } + if heavy_rpcs.contains(conn_name) { + // connection is on a child block continue; }