mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-12 15:03:45 +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
|
// 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(
|
func AddFeeTransferLog(
|
||||||
state vm.StateDB,
|
state vm.StateDB,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -335,12 +335,12 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
|
||||||
if london {
|
if london {
|
||||||
effectiveTip = cmath.BigMin(st.gasTipCap, new(big.Int).Sub(st.gasFeeCap, st.evm.Context.BaseFee))
|
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()), effectiveTip)
|
||||||
|
st.state.AddBalance(st.evm.Context.Coinbase, amount)
|
||||||
amount := new(big.Int).Mul(new(big.Int).SetUint64(st.gasUsed()), st.gasPrice)
|
|
||||||
output1 := new(big.Int).SetBytes(input1.Bytes())
|
output1 := new(big.Int).SetBytes(input1.Bytes())
|
||||||
output2 := new(big.Int).SetBytes(input2.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
|
// add transfer log
|
||||||
AddFeeTransferLog(
|
AddFeeTransferLog(
|
||||||
st.state,
|
st.state,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue