From c22297ccafbd9eb62e71cf8634928ea2dc9d0257 Mon Sep 17 00:00:00 2001 From: Ahmad Kaouk <56095276+ahmadkaouk@users.noreply.github.com> Date: Wed, 12 Nov 2025 18:23:08 +0100 Subject: [PATCH] fix: use binary search for eth gas estimate (#296) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - Build the node with Frontier’s rpc-binary-search-estimate feature so eth_estimateGas runs the same iterative search as Moonbeam. - Instead of returning the gas spent by a single max-allowance dry run, the RPC now repeatedly replays the transaction while shrinking the gas cap until it finds the smallest limit that still succeeds. --- operator/node/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operator/node/Cargo.toml b/operator/node/Cargo.toml index 86870698..831f71c5 100644 --- a/operator/node/Cargo.toml +++ b/operator/node/Cargo.toml @@ -92,7 +92,7 @@ fc-cli = { workspace = true } fc-consensus = { workspace = true } fc-db = { workspace = true } fc-mapping-sync = { workspace = true, features = ["sql"] } -fc-rpc = { workspace = true, features = ["txpool"] } +fc-rpc = { workspace = true, features = ["txpool", "rpc-binary-search-estimate"] } fc-rpc-core = { workspace = true, features = ["txpool"] } fc-storage = { workspace = true } fp-account = { workspace = true }