mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 03:10:48 +00:00
core: charge floorDataGas if it exceeds regularGas
This commit is contained in:
parent
111e7b8b48
commit
60a9e39ba7
1 changed files with 1 additions and 0 deletions
|
|
@ -912,6 +912,7 @@ func (st *stateTransition) settleGas(rules params.Rules, floorDataGas uint64) (g
|
|||
}
|
||||
|
||||
if rules.IsAmsterdam {
|
||||
txRegularGas = max(txRegularGas, floorDataGas)
|
||||
if err = st.gp.ChargeGasAmsterdam(txRegularGas, txStateGas, gasUsed); err != nil {
|
||||
return 0, 0, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue