Revert "Disable pre-fetch tracing"

This reverts commit 451acc6c7b.
This commit is contained in:
Matthieu Vachon 2025-06-09 14:30:03 -04:00
parent 451acc6c7b
commit 89c941c2f9

View file

@ -664,13 +664,8 @@ func (bc *BlockChain) ProcessBlock(block *types.Block, parent *types.Header, wit
go func() { go func() {
statedb.StartPrefetcher("chain", witness) statedb.StartPrefetcher("chain", witness)
// Disable tracing for prefetcher executions.
vmCfg := bc.vmConfig
vmCfg.Tracer = nil
pstart := time.Now() pstart := time.Now()
res, err := bc.processor.Process(block, statedb, vmCfg, ctx) res, err := bc.processor.Process(block, statedb, bc.vmConfig, ctx)
blockExecutionSerialTimer.UpdateSince(pstart) blockExecutionSerialTimer.UpdateSince(pstart)
if err == nil { if err == nil {
vstart := time.Now() vstart := time.Now()