diff --git a/core/bor_fee_log.go b/core/bor_fee_log.go index c2851750da..1b5e9af29c 100644 --- a/core/bor_fee_log.go +++ b/core/bor_fee_log.go @@ -42,6 +42,7 @@ func AddTransferLog( } // AddFeeTransferLog adds transfer log into state +// Deprecating transfer log and will be removed in future fork. PLEASE DO NOT USE this transfer log going forward. Parameters won't get updated as expected going forward with EIP1559 func AddFeeTransferLog( state vm.StateDB, diff --git a/core/state_transition.go b/core/state_transition.go index 25a672a60e..9d60f6bee6 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -335,12 +335,12 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) { if london { effectiveTip = cmath.BigMin(st.gasTipCap, new(big.Int).Sub(st.gasFeeCap, st.evm.Context.BaseFee)) } - st.state.AddBalance(st.evm.Context.Coinbase, new(big.Int).Mul(new(big.Int).SetUint64(st.gasUsed()), effectiveTip)) - - amount := new(big.Int).Mul(new(big.Int).SetUint64(st.gasUsed()), st.gasPrice) + amount := new(big.Int).Mul(new(big.Int).SetUint64(st.gasUsed()), effectiveTip) + st.state.AddBalance(st.evm.Context.Coinbase, amount) output1 := new(big.Int).SetBytes(input1.Bytes()) output2 := new(big.Int).SetBytes(input2.Bytes()) + // Deprecating transfer log and will be removed in future fork. PLEASE DO NOT USE this transfer log going forward. Parameters won't get updated as expected going forward with EIP1559 // add transfer log AddFeeTransferLog( st.state,