Closed
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.