mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
core: fix wrong refundGas when gasUsed < floorDataGas
This commit is contained in:
parent
5a7bbb423f
commit
f054f386f1
1 changed files with 1 additions and 0 deletions
|
|
@ -515,6 +515,7 @@ func (st *stateTransition) execute() (*ExecutionResult, error) {
|
|||
if rules.IsPrague {
|
||||
// After EIP-7623: Data-heavy transactions pay the floor gas.
|
||||
if st.gasUsed() < floorDataGas {
|
||||
gasRefund = 0
|
||||
prev := st.gasRemaining
|
||||
st.gasRemaining = st.initialGas - floorDataGas
|
||||
if t := st.evm.Config.Tracer; t != nil && t.OnGasChange != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue