From be03d6f4f0aedf8f23f23d199a5b24a2edbab8f7 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 21 Nov 2023 23:21:03 -0400 Subject: [PATCH] explicit eth_blockNumber --- web3_proxy/src/block_number.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web3_proxy/src/block_number.rs b/web3_proxy/src/block_number.rs index 9faaaa62..330cc2e6 100644 --- a/web3_proxy/src/block_number.rs +++ b/web3_proxy/src/block_number.rs @@ -355,6 +355,11 @@ impl CacheMode { // TODO: make sure re-orgs work properly! Ok(Self::SuccessForever) } + "eth_blockNumber" => Ok(Self::Standard { + block_needed: head_block.into(), + cache_block: head_block.into(), + cache_errors: true, + }), "eth_gasPrice" => Ok(Self::Never), "eth_getBlockByHash" => { // TODO: double check that any node can serve this