mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
goimports
This commit is contained in:
parent
b2a287c401
commit
a1a17f23f0
2 changed files with 2 additions and 2 deletions
|
|
@ -447,7 +447,7 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
|
|||
UsedGas: st.gasUsed(),
|
||||
Err: vmerr,
|
||||
ReturnData: ret,
|
||||
GasRefund: gasRefund,
|
||||
GasRefund: gasRefund,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1280,7 +1280,7 @@ func DoEstimateGas(ctx context.Context, b Backend, args TransactionArgs, blockNr
|
|||
return 0, fmt.Errorf("gas required exceeds allowance (%d)", hi)
|
||||
}
|
||||
|
||||
// Optimization: if the transaction succeeded with gasLimit set to the first execution's
|
||||
// Optimization: if the transaction succeeded with gasLimit set to the first execution's
|
||||
// usedGas + gasRefund, then return that value immediately. Else, continue with the binary search.
|
||||
optimisticGasLimit := result.UsedGas + result.GasRefund
|
||||
failed, _, err = executeEstimate(ctx, b, args, state.Copy(), header, gasCap, optimisticGasLimit)
|
||||
|
|
|
|||
Loading…
Reference in a new issue