mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 03:10:48 +00:00
eth/gasestimator: treat floor data gas errors as insufficient gas
ErrFloorDataGas means the gas limit is below the EIP-7623 floor cost. Treat it like a gas-related failure so estimation raises the limit instead of aborting.
This commit is contained in:
parent
c3f2851872
commit
828ac1670e
1 changed files with 3 additions and 0 deletions
|
|
@ -219,6 +219,9 @@ func execute(ctx context.Context, call *core.Message, opts *Options, gasLimit ui
|
||||||
if errors.Is(err, core.ErrGasLimitTooHigh) {
|
if errors.Is(err, core.ErrGasLimitTooHigh) {
|
||||||
return true, nil, nil // Special case, lower gas limit
|
return true, nil, nil // Special case, lower gas limit
|
||||||
}
|
}
|
||||||
|
if errors.Is(err, vm.ErrFloorDataGas) {
|
||||||
|
return true, nil, nil // Special case, raise gas limit
|
||||||
|
}
|
||||||
return true, nil, err // Bail out
|
return true, nil, err // Bail out
|
||||||
}
|
}
|
||||||
return result.Failed(), result, nil
|
return result.Failed(), result, nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue