mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 00:43:46 +00:00
Merge remote-tracking branch 's1na/extended-tracer' into feature/firehose-extended-tracer
# Conflicts: # core/blockchain.go
This commit is contained in:
commit
751b984c9b
1 changed files with 3 additions and 4 deletions
|
|
@ -1763,10 +1763,9 @@ func (bc *BlockChain) insertChain(chain types.Blocks, setHead bool) (int, error)
|
||||||
throwaway, _ := state.New(parent.Root, bc.stateCache, bc.snaps)
|
throwaway, _ := state.New(parent.Root, bc.stateCache, bc.snaps)
|
||||||
|
|
||||||
go func(start time.Time, followup *types.Block, throwaway *state.StateDB) {
|
go func(start time.Time, followup *types.Block, throwaway *state.StateDB) {
|
||||||
config := bc.vmConfig
|
vmCfg := bc.vmConfig
|
||||||
config.Tracer = nil
|
vmCfg.Tracer = nil
|
||||||
|
bc.prefetcher.Prefetch(followup, throwaway, vmCfg, &followupInterrupt)
|
||||||
bc.prefetcher.Prefetch(followup, throwaway, config, &followupInterrupt)
|
|
||||||
|
|
||||||
blockPrefetchExecuteTimer.Update(time.Since(start))
|
blockPrefetchExecuteTimer.Update(time.Since(start))
|
||||||
if followupInterrupt.Load() {
|
if followupInterrupt.Load() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue