From 58b7799cc5f9d8392af5224e304b3b3bc6ba42a4 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 16 May 2023 18:25:56 -0700 Subject: [PATCH] for now, always return 0 for cost --- web3_proxy/src/stats/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web3_proxy/src/stats/mod.rs b/web3_proxy/src/stats/mod.rs index 352adb58..deb8563d 100644 --- a/web3_proxy/src/stats/mod.rs +++ b/web3_proxy/src/stats/mod.rs @@ -669,6 +669,9 @@ impl RpcQueryStats { cache_hit: bool, method: Option<&str>, ) -> Decimal { + // for now, always return 0 for cost + return 0.into(); + // some methods should be free. there might be cases where method isn't set (though they should be uncommon) // TODO: get this list from config (and add more to it) if let Some(method) = method.as_ref() {