mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 01:38:32 +00:00
fix: use binary search for eth gas estimate (#296)
## 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.
This commit is contained in:
parent
61a5cbab51
commit
c22297ccaf
1 changed files with 1 additions and 1 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Reference in a new issue