From af807e581c3aad19036ce7ee8eec018f90f7bf9e Mon Sep 17 00:00:00 2001 From: Jeremy Wei Date: Wed, 25 Sep 2024 17:12:16 -0400 Subject: [PATCH] No longer burn base fees (#33) * no longer burn base fees * remove prints * don't burn base fee * just do 1 AddBalance to Coinbase addr * remove print * fix --- core/state_transition.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/state_transition.go b/core/state_transition.go index 6382dc1deb..8c6dc03b48 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -458,7 +458,9 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) { // the coinbase when simulating calls. } else { fee := new(big.Int).SetUint64(st.gasUsed()) - fee.Mul(fee, effectiveTip) + // Sei doesn't don't burn the base fee and instead funds the Coinbase address with the base fee + totalFeePerGas := new(big.Int).Add(st.evm.Context.BaseFee, effectiveTip) + fee.Mul(fee, totalFeePerGas) st.state.AddBalance(st.evm.Context.Coinbase, fee, tracing.BalanceIncreaseRewardTransactionFee) }