From 25be12715f192ca343d847bdf075a17fe097d35e Mon Sep 17 00:00:00 2001 From: Shivam Sharma Date: Wed, 5 Jul 2023 16:36:30 +0530 Subject: [PATCH] rm : multiple coinbase balance --- core/state_processor.go | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/core/state_processor.go b/core/state_processor.go index 42af6dc037..f893ceffba 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -126,8 +126,6 @@ func applyTransaction(msg *Message, config *params.ChainConfig, gp *GasPool, sta // pause recording read and write statedb.SetMVHashmap(nil) - coinbaseBalance := statedb.GetBalance(evm.Context.Coinbase) - // resume recording read and write statedb.SetMVHashmap(backupMVHashMap) @@ -139,29 +137,6 @@ func applyTransaction(msg *Message, config *params.ChainConfig, gp *GasPool, sta // stop recording read and write statedb.SetMVHashmap(nil) - if evm.ChainConfig().IsLondon(blockNumber) { - statedb.AddBalance(result.BurntContractAddress, result.FeeBurnt) - } - - statedb.AddBalance(evm.Context.Coinbase, result.FeeTipped) - output1 := new(big.Int).SetBytes(result.SenderInitBalance.Bytes()) - output2 := new(big.Int).SetBytes(coinbaseBalance.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( - statedb, - - msg.From, - evm.Context.Coinbase, - - result.FeeTipped, - result.SenderInitBalance, - coinbaseBalance, - output1.Sub(output1, result.FeeTipped), - output2.Add(output2, result.FeeTipped), - ) - if result.Err == vm.ErrInterrupt { return nil, result.Err }