Skip to content

Commit

Permalink
Merge pull request #2216 from OffchainLabs/dont-wait-on-prefetcher
Browse files Browse the repository at this point in the history
Don't wait on the prefetcher to complete before producing the next block
  • Loading branch information
PlasmaPower committed Apr 1, 2024
2 parents df28fc7 + f3f7521 commit c84507b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions execution/gethexec/executionengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,11 +611,8 @@ func (s *ExecutionEngine) digestMessageWithBlockMutex(num arbutil.MessageIndex,
}

startTime := time.Now()
var wg sync.WaitGroup
if s.prefetchBlock && msgForPrefetch != nil {
wg.Add(1)
go func() {
defer wg.Done()
_, _, _, err := s.createBlockFromNextMessage(msgForPrefetch, true)
if err != nil {
return
Expand All @@ -627,7 +624,6 @@ func (s *ExecutionEngine) digestMessageWithBlockMutex(num arbutil.MessageIndex,
if err != nil {
return err
}
wg.Wait()
err = s.appendBlock(block, statedb, receipts, time.Since(startTime))
if err != nil {
return err
Expand Down

0 comments on commit c84507b

Please sign in to comment.