Skip to content

Commit

Permalink
do not fetch bundle if empty block num during the starup (ethereum#29)
Browse files Browse the repository at this point in the history
* do not fetch bundle if empty block num during the startup
  • Loading branch information
bhakiyakalimuthu authored and avalonche committed Mar 9, 2023
1 parent d05550b commit 181289b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flashbotsextra/fetcher.go
Expand Up @@ -95,6 +95,9 @@ func (b *bundleFetcher) fetchAndPush(ctx context.Context, pushMevBundles func(bu
}

case <-lowPrioBundleTicker.C:
if blockNum == 0 {
continue
}
ctxL, cancelL := context.WithTimeout(ctx, time.Second*3)
bundles, err := b.db.GetPriorityBundles(ctxL, blockNum, false)
cancelL()
Expand Down

0 comments on commit 181289b

Please sign in to comment.