From b208335f472d5b773437a3cd38acf1f5e52340c1 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Mon, 5 May 2025 13:04:13 +0800 Subject: [PATCH] eth/tracers: fix standardTraceBlockToFile: instantiate EVM instance with the intended tracer configuration if the tx is intended to be traced --- eth/tracers/api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/eth/tracers/api.go b/eth/tracers/api.go index 17a0ad687a..aebf1d2649 100644 --- a/eth/tracers/api.go +++ b/eth/tracers/api.go @@ -813,6 +813,7 @@ func (api *API) standardTraceBlockToFile(ctx context.Context, block *types.Block Tracer: logger.NewJSONLogger(&logConfig, writer), EnablePreimageRecording: true, } + evm = vm.NewEVM(vmctx, statedb, chainConfig, vmConf) } // Execute the transaction and flush any traces to disk statedb.SetTxContext(tx.Hash(), i)