Skip to content

Optimize Gas Estimation #537

@vladjdk

Description

@vladjdk

Currently, our binary search estimation in EstimateGas runs the same transaction at least 20 times. Refer to https://github.com/ethereum/go-ethereum/blob/v1.16.2/eth/gasestimator/gasestimator.go for optimizations made to shorten the amount of times we estimate.

In particular, short-circuit on plain sends to non-contracts, and calculate an optimisticGasLimit.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions