From c507cc89d3cf0b2fd049e0f8171d2de10e8d66e9 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 20 Oct 2023 12:29:55 -0700 Subject: [PATCH] dont cache transaction queries so that to_block is None --- web3_proxy/src/block_number.rs | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/web3_proxy/src/block_number.rs b/web3_proxy/src/block_number.rs index f69e8896..53166434 100644 --- a/web3_proxy/src/block_number.rs +++ b/web3_proxy/src/block_number.rs @@ -426,27 +426,13 @@ impl CacheMode { cache_errors: true, }) } - "eth_getTransactionByHash" => { - // TODO: not sure how best to look these up - // try full nodes first. retry will use archive - Ok(CacheMode::Standard { - block: head_block.into(), - cache_errors: true, - }) - } "eth_getTransactionByBlockHashAndIndex" => { // TODO: check a Cache of recent hashes // try full nodes first. retry will use archive Ok(CacheMode::SuccessForever) } - "eth_getTransactionReceipt" => { - // TODO: not sure how best to look these up - // try full nodes first. retry will use archive - Ok(CacheMode::Standard { - block: head_block.into(), - cache_errors: true, - }) - } + "eth_getTransactionByHash" => Ok(CacheMode::Never), + "eth_getTransactionReceipt" => Ok(CacheMode::Never), "eth_getUncleByBlockHashAndIndex" => { // TODO: check a Cache of recent hashes // try full nodes first. retry will use archive