mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +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() {
|
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, bc.vmConfig, ctx)
|
res, err := bc.processor.Process(block, statedb, vmCfg, ctx)
|
||||||
blockExecutionSerialTimer.UpdateSince(pstart)
|
blockExecutionSerialTimer.UpdateSince(pstart)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
vstart := time.Now()
|
vstart := time.Now()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue