mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
effectiveTip = GasPrice - BaseFee
This commit is contained in:
parent
51b34efebc
commit
033c1ed8bd
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue