Skip to content

Commit af807e5

Browse files
authored
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
1 parent 0050f0a commit af807e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/state_transition.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,9 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
458458
// the coinbase when simulating calls.
459459
} else {
460460
fee := new(big.Int).SetUint64(st.gasUsed())
461-
fee.Mul(fee, effectiveTip)
461+
// Sei doesn't don't burn the base fee and instead funds the Coinbase address with the base fee
462+
totalFeePerGas := new(big.Int).Add(st.evm.Context.BaseFee, effectiveTip)
463+
fee.Mul(fee, totalFeePerGas)
462464
st.state.AddBalance(st.evm.Context.Coinbase, fee, tracing.BalanceIncreaseRewardTransactionFee)
463465
}
464466

0 commit comments

Comments
 (0)