@@ -19,6 +19,7 @@ package core
1919import (
2020 "math/big"
2121
22+ "github.com/ethereum/go-ethereum/common"
2223 "github.com/ethereum/go-ethereum/consensus"
2324 "github.com/ethereum/go-ethereum/consensus/misc"
2425 "github.com/ethereum/go-ethereum/core/state"
@@ -69,7 +70,7 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
6970 // Iterate over and process the individual transactions
7071 for i , tx := range block .Transactions () {
7172 statedb .StartRecord (tx .Hash (), block .Hash (), i )
72- receipt , _ , err := ApplyTransaction (p .config , p .bc , gp , statedb , header , tx , totalUsedGas , cfg )
73+ receipt , _ , err := ApplyTransaction (p .config , p .bc , nil , gp , statedb , header , tx , totalUsedGas , cfg )
7374 if err != nil {
7475 return nil , nil , nil , err
7576 }
@@ -86,13 +87,13 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
8687// and uses the input parameters for its environment. It returns the receipt
8788// for the transaction, gas used and an error if the transaction failed,
8889// indicating the block was invalid.
89- func ApplyTransaction (config * params.ChainConfig , bc * BlockChain , gp * GasPool , statedb * state.StateDB , header * types.Header , tx * types.Transaction , usedGas * big.Int , cfg vm.Config ) (* types.Receipt , * big.Int , error ) {
90+ func ApplyTransaction (config * params.ChainConfig , bc * BlockChain , author * common. Address , gp * GasPool , statedb * state.StateDB , header * types.Header , tx * types.Transaction , usedGas * big.Int , cfg vm.Config ) (* types.Receipt , * big.Int , error ) {
9091 msg , err := tx .AsMessage (types .MakeSigner (config , header .Number ))
9192 if err != nil {
9293 return nil , nil , err
9394 }
9495 // Create a new context to be used in the EVM environment
95- context := NewEVMContext (msg , header , bc )
96+ context := NewEVMContext (msg , header , bc , author )
9697 // Create a new environment which holds all relevant information
9798 // about the transaction and calling mechanisms.
9899 vmenv := vm .NewEVM (context , statedb , config , cfg )
0 commit comments