mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-29 08:03:48 +00:00
fee change
This commit is contained in:
parent
b27dca6bbf
commit
b4ad712cd4
2 changed files with 4 additions and 3 deletions
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue