@@ -81,7 +81,7 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
81
81
}
82
82
// Iterate over and process the individual transactions
83
83
for i , tx := range block .Transactions () {
84
- msg , err := TransactionToMessage (tx , signer , header .BaseFee , MessageCommitMode )
84
+ msg , err := TransactionToMessage (tx , signer , header .BaseFee , MessageReplayMode )
85
85
if err != nil {
86
86
return nil , nil , 0 , fmt .Errorf ("could not apply tx %d [%v]: %w" , i , tx .Hash ().Hex (), err )
87
87
}
@@ -179,11 +179,11 @@ func ApplyTransactionWithEVM(msg *Message, config *params.ChainConfig, gp *GasPo
179
179
// for the transaction, gas used and an error if the transaction failed,
180
180
// indicating the block was invalid.
181
181
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 ) {
182
- return ApplyTransactionWithResultFilter (config , bc , author , gp , statedb , header , tx , usedGas , cfg , nil )
182
+ return ApplyTransactionWithResultFilter (config , bc , author , gp , statedb , header , tx , usedGas , cfg , MessageReplayMode , nil )
183
183
}
184
184
185
- 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 ) {
186
- msg , err := TransactionToMessage (tx , types .MakeSigner (config , header .Number , header .Time ), header .BaseFee , MessageReplayMode )
185
+ 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 ) {
186
+ msg , err := TransactionToMessage (tx , types .MakeSigner (config , header .Number , header .Time ), header .BaseFee , runMode )
187
187
if err != nil {
188
188
return nil , nil , err
189
189
}
0 commit comments