mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth/gasestimator: I hate you linter
This commit is contained in:
parent
cc3d58dbdf
commit
339429565c
1 changed files with 2 additions and 2 deletions
|
|
@ -52,8 +52,8 @@ type Options struct {
|
||||||
func Estimate(ctx context.Context, call *core.Message, opts *Options, gasCap uint64) (uint64, []byte, error) {
|
func Estimate(ctx context.Context, call *core.Message, opts *Options, gasCap uint64) (uint64, []byte, error) {
|
||||||
// Binary search the gas limit, as it may need to be higher than the amount used
|
// Binary search the gas limit, as it may need to be higher than the amount used
|
||||||
var (
|
var (
|
||||||
lo = params.TxGas - 1 // lowest-known gas limit where tx execution fails
|
lo uint64 // lowest-known gas limit where tx execution fails
|
||||||
hi uint64 // lowest-known gas limit where tx execution succeeds
|
hi uint64 // lowest-known gas limit where tx execution succeeds
|
||||||
)
|
)
|
||||||
// Determine the highest gas limit can be used during the estimation.
|
// Determine the highest gas limit can be used during the estimation.
|
||||||
hi = opts.Header.GasLimit
|
hi = opts.Header.GasLimit
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue