From 8ebce901d48aafacb3af30422a9013b03266e1d0 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 14 Nov 2023 14:05:23 -0800 Subject: [PATCH] dont set head_block inside internal_request --- web3_proxy/src/rpcs/one.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/web3_proxy/src/rpcs/one.rs b/web3_proxy/src/rpcs/one.rs index 0902e3e4..bcee7081 100644 --- a/web3_proxy/src/rpcs/one.rs +++ b/web3_proxy/src/rpcs/one.rs @@ -1001,8 +1001,6 @@ impl Web3Rpc { ) .await; - info!(?block_result, "tick on {}", self); - self.send_head_block_result(block_result).await?; // TODO: should this select be at the start or end of the loop? @@ -1280,8 +1278,8 @@ impl Web3Rpc { error_handler: Option, max_wait: Option, ) -> Web3ProxyResult { - // TODO: should this be the app, or this RPC's head block? - let head_block = self.head_block_sender.as_ref().unwrap().borrow().clone(); + // TODO: should this be the app, or this RPC's head block? i think we want None so that "latest" gets left alone + let head_block = None; let web3_request = ValidatedRequest::new_internal(method, params, head_block, max_wait).await?;