Skip to content

Commit 64718d3

Browse files
authored
Merge branch 'merge-1.14.0' into gligneul/fix-merge-1.14.0
2 parents 72e4db5 + 2b01a1c commit 64718d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/state_processor.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
8181
}
8282
// Iterate over and process the individual transactions
8383
for i, tx := range block.Transactions() {
84-
msg, err := TransactionToMessage(tx, signer, header.BaseFee, MessageCommitMode)
84+
msg, err := TransactionToMessage(tx, signer, header.BaseFee, MessageReplayMode)
8585
if err != nil {
8686
return nil, nil, 0, fmt.Errorf("could not apply tx %d [%v]: %w", i, tx.Hash().Hex(), err)
8787
}
@@ -179,11 +179,11 @@ func ApplyTransactionWithEVM(msg *Message, config *params.ChainConfig, gp *GasPo
179179
// for the transaction, gas used and an error if the transaction failed,
180180
// indicating the block was invalid.
181181
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)
183183
}
184184

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)
187187
if err != nil {
188188
return nil, nil, err
189189
}

0 commit comments

Comments
 (0)