mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
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
This commit is contained in:
parent
0050f0abba
commit
af807e581c
1 changed files with 3 additions and 1 deletions
|
|
@ -458,7 +458,9 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
|
||||||
// the coinbase when simulating calls.
|
// the coinbase when simulating calls.
|
||||||
} else {
|
} else {
|
||||||
fee := new(big.Int).SetUint64(st.gasUsed())
|
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)
|
st.state.AddBalance(st.evm.Context.Coinbase, fee, tracing.BalanceIncreaseRewardTransactionFee)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue