Skip to content

Commit

Permalink
Fix issue: Inconsistency Between State TransitionDB And FeeHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKim20 committed May 17, 2024
1 parent 227c190 commit 4d2a166
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,7 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
st.refundGas(params.RefundQuotientEIP3529)
}
effectiveTip := msg.GasPrice
// stop burning base fees if bosagora
if rules.IsLondon && !st.evm.ChainConfig().IsBosagora(st.evm.Context.BlockNumber) {
if rules.IsLondon {
effectiveTip = cmath.BigMin(msg.GasTipCap, new(big.Int).Sub(msg.GasFeeCap, st.evm.Context.BaseFee))
}

Expand Down

0 comments on commit 4d2a166

Please sign in to comment.