mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
Disable pre-fetch tracing
This commit is contained in:
parent
7f5c089a2e
commit
451acc6c7b
1 changed files with 6 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue