From 4370527cf924dbdf8665238fcb1d01eb027d1cb5 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Mon, 24 Jul 2023 18:46:58 +0200 Subject: [PATCH] fix prefetcher double emit --- core/blockchain.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index b72917f7b3..e0985e9728 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1763,7 +1763,9 @@ func (bc *BlockChain) insertChain(chain types.Blocks, setHead bool) (int, error) throwaway, _ := state.New(parent.Root, bc.stateCache, bc.snaps) go func(start time.Time, followup *types.Block, throwaway *state.StateDB) { - bc.prefetcher.Prefetch(followup, throwaway, bc.vmConfig, &followupInterrupt) + vmCfg := bc.vmConfig + vmCfg.Tracer = nil + bc.prefetcher.Prefetch(followup, throwaway, vmCfg, &followupInterrupt) blockPrefetchExecuteTimer.Update(time.Since(start)) if followupInterrupt.Load() {