From e8f986170b84677d37b92c4ae2325fc006db3931 Mon Sep 17 00:00:00 2001 From: linhaiyang <1183679527@qq.com> Date: Fri, 21 Jan 2022 18:59:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E6=89=A7=E8=A1=8C=E4=BA=A4=E6=98=93?= =?UTF-8?q?=20=E4=B8=8D=E6=A3=80=E6=9F=A5baseFee?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/state_transition.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state_transition.go b/core/state_transition.go index 74d25096a9..6969418ea3 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -240,7 +240,7 @@ 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) { + if st.evm.ChainConfig().IsLondon(st.evm.Context.BlockNumber) && !st.msg.IsPre() { // Skip the checks if gas fields are zero and baseFee was explicitly disabled (eth_call) if !st.evm.Config.NoBaseFee || st.gasFeeCap.BitLen() > 0 || st.gasTipCap.BitLen() > 0 { if l := st.gasFeeCap.BitLen(); l > 256 {