effectiveTip = GasPrice - BaseFee

This commit is contained in:
alan 2025-05-07 00:25:55 +08:00
parent 51b34efebc
commit 033c1ed8bd

View file

@ -532,7 +532,7 @@ func (st *stateTransition) execute() (*ExecutionResult, error) {
effectiveTip := msg.GasPrice
if rules.IsLondon {
effectiveTip = new(big.Int).Sub(msg.GasFeeCap, st.evm.Context.BaseFee)
effectiveTip = new(big.Int).Sub(msg.GasPrice, st.evm.Context.BaseFee)
if effectiveTip.Cmp(msg.GasTipCap) > 0 {
effectiveTip = msg.GasTipCap
}