@@ -80,7 +80,7 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
80
80
}
81
81
// Iterate over and process the individual transactions
82
82
for i , tx := range block .Transactions () {
83
- msg , err := TransactionToMessage (tx , signer , header .BaseFee , MessageCommitMode )
83
+ msg , err := TransactionToMessage (tx , signer , header .BaseFee , MessageReplayMode )
84
84
if err != nil {
85
85
return nil , nil , 0 , fmt .Errorf ("could not apply tx %d [%v]: %w" , i , tx .Hash ().Hex (), err )
86
86
}
@@ -166,11 +166,11 @@ func applyTransaction(msg *Message, config *params.ChainConfig, gp *GasPool, sta
166
166
// for the transaction, gas used and an error if the transaction failed,
167
167
// indicating the block was invalid.
168
168
func ApplyTransaction (config * params.ChainConfig , bc ChainContext , author * common.Address , gp * GasPool , statedb * state.StateDB , header * types.Header , tx * types.Transaction , usedGas * uint64 , cfg vm.Config ) (* types.Receipt , * ExecutionResult , error ) {
169
- return ApplyTransactionWithResultFilter (config , bc , author , gp , statedb , header , tx , usedGas , cfg , nil )
169
+ return ApplyTransactionWithResultFilter (config , bc , author , gp , statedb , header , tx , usedGas , cfg , MessageReplayMode , nil )
170
170
}
171
171
172
- func ApplyTransactionWithResultFilter (config * params.ChainConfig , bc ChainContext , author * common.Address , gp * GasPool , statedb * state.StateDB , header * types.Header , tx * types.Transaction , usedGas * uint64 , cfg vm.Config , resultFilter func (* ExecutionResult ) error ) (* types.Receipt , * ExecutionResult , error ) {
173
- msg , err := TransactionToMessage (tx , types .MakeSigner (config , header .Number , header .Time ), header .BaseFee , MessageReplayMode )
172
+ func ApplyTransactionWithResultFilter (config * params.ChainConfig , bc ChainContext , author * common.Address , gp * GasPool , statedb * state.StateDB , header * types.Header , tx * types.Transaction , usedGas * uint64 , cfg vm.Config , runMode MessageRunMode , resultFilter func (* ExecutionResult ) error ) (* types.Receipt , * ExecutionResult , error ) {
173
+ msg , err := TransactionToMessage (tx , types .MakeSigner (config , header .Number , header .Time ), header .BaseFee , runMode )
174
174
if err != nil {
175
175
return nil , nil , err
176
176
}
0 commit comments