mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
eth/tracers: fix standardTraceBlockToFile: instantiate EVM instance with the intended tracer configuration if the tx is intended to be traced
This commit is contained in:
parent
1b18ba2423
commit
b208335f47
1 changed files with 1 additions and 0 deletions
|
|
@ -813,6 +813,7 @@ func (api *API) standardTraceBlockToFile(ctx context.Context, block *types.Block
|
||||||
Tracer: logger.NewJSONLogger(&logConfig, writer),
|
Tracer: logger.NewJSONLogger(&logConfig, writer),
|
||||||
EnablePreimageRecording: true,
|
EnablePreimageRecording: true,
|
||||||
}
|
}
|
||||||
|
evm = vm.NewEVM(vmctx, statedb, chainConfig, vmConf)
|
||||||
}
|
}
|
||||||
// Execute the transaction and flush any traces to disk
|
// Execute the transaction and flush any traces to disk
|
||||||
statedb.SetTxContext(tx.Hash(), i)
|
statedb.SetTxContext(tx.Hash(), i)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue