From c00eebeb320d9c0b50b044c274fd44b055f8353d Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 10 Jul 2023 15:13:49 -0700 Subject: [PATCH] admin_ should be unimplemented cost --- web3_proxy/src/compute_units.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web3_proxy/src/compute_units.rs b/web3_proxy/src/compute_units.rs index 6f446f08..9644e663 100644 --- a/web3_proxy/src/compute_units.rs +++ b/web3_proxy/src/compute_units.rs @@ -23,6 +23,9 @@ impl ComputeUnit { let cu = if method.starts_with("ots_") { // TODO: refine the different methods 1000 + } else if method.starts_with("admin_") { + // maybe charge extra since they are doing things they aren't supposed to + return Self::unimplemented(); } else { match (chain_id, method) { (1101, "zkevm_batchNumber") => 0,