Skip to content

gasPrice parameter not always respected when passed to eth_estimateGas endpoint  #1586

Closed
@timbeiko

Description

Shared by Adhara:

In Besu's code you can see that gas price get overridden when we estimate gas.
It gets set to zero in the function overrideGasLimitAndPrice. Since the transaction gets executed locally when we estimate the gas, we have a scenario where the estimation returns an error cause the transaction gets reverted.
This is due to a gas aware smart contract that checks gas price.

So my question is whether it would be possible to respect the gasPrice parameter when it is passed into the eth_estimateGas endpoint? This is done in go-ethereum where the estimation always works.

Metadata

Assignees

Labels

P3Medium (ex: JSON-RPC request not working with a specific client library due to loose spec assumtion)bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions