diff --git a/core/state_transition.go b/core/state_transition.go index cb9287a82..d8d325c0a 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -290,7 +290,9 @@ func (st *StateTransition) preCheck() error { } // Make sure that transaction gasFeeCap is greater than the baseFee (post london) - if st.evm.ChainConfig().IsLondon(st.evm.Context.BlockNumber) { + // begin PluGeth injection + if st.evm.ChainConfig().Is1559(st.evm.Context.BlockNumber) { + // end PluGeth injection // Skip the checks if gas fields are zero and baseFee was explicitly disabled (eth_call) if !st.evm.Config.NoBaseFee || msg.GasFeeCap.BitLen() > 0 || msg.GasTipCap.BitLen() > 0 { if l := msg.GasFeeCap.BitLen(); l > 256 { @@ -433,7 +435,11 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) { } effectiveTip := msg.GasPrice if rules.IsLondon { - effectiveTip = cmath.BigMin(msg.GasTipCap, new(big.Int).Sub(msg.GasFeeCap, st.evm.Context.BaseFee)) + // begin PluGeth injection + if st.evm.ChainConfig().Is1559(st.evm.Context.BlockNumber) { + // end PluGeth injection + effectiveTip = cmath.BigMin(msg.GasTipCap, new(big.Int).Sub(msg.GasFeeCap, st.evm.Context.BaseFee)) + } } if st.evm.Config.NoBaseFee && msg.GasFeeCap.Sign() == 0 && msg.GasTipCap.Sign() == 0 {