From abe516c21ec1b08a0ca011d942d9bd682b6d5fc1 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 29 Sep 2023 10:37:49 -0700 Subject: [PATCH] turn down logging on eth_getLogs for now --- web3_proxy/src/block_number.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web3_proxy/src/block_number.rs b/web3_proxy/src/block_number.rs index 72509975..adf9d11b 100644 --- a/web3_proxy/src/block_number.rs +++ b/web3_proxy/src/block_number.rs @@ -305,7 +305,8 @@ impl CacheMode { Ok(CacheMode::CacheSuccessForever) } "eth_getLogs" => { - // TODO: think about this more + /* + // TODO: think about this more. this seems like it partly belongs in clean_block_number // TODO: jsonrpc has a specific code for this let obj = params .get_mut(0) @@ -365,6 +366,11 @@ impl CacheMode { cache_errors: true, }) } + */ + Ok(CacheMode::Cache { + block: head_block.into(), + cache_errors: true, + }) } "eth_getTransactionByHash" => { // TODO: not sure how best to look these up