Disable pre-fetch tracing

This commit is contained in:
Matthieu Vachon 2025-06-09 13:42:25 -04:00
parent 7f5c089a2e
commit 451acc6c7b

View file

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