We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e737742 commit 512533dCopy full SHA for 512533d
services/requester/requester.go
@@ -379,6 +379,9 @@ func (e *EVM) EstimateGas(
379
height uint64,
380
stateOverrides *ethTypes.StateOverride,
381
) (uint64, error) {
382
+ // Note: The following algorithm, is largely inspired from
383
+ // https://github.com/onflow/go-ethereum/blob/master/eth/gasestimator/gasestimator.go#L49-L192,
384
+ // and adapted to fit our use-case.
385
// Binary search the gas limit, as it may need to be higher than the amount used
386
var (
387
failingGasLimit uint64 // lowest-known gas limit where tx execution fails
0 commit comments