Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
do not fetch bundle if empty block num during the starup (#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 Feb 6, 2023
1 parent ff1954a commit 7a1d5cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flashbotsextra/fetcher.go
Original file line number Diff line number Diff line change
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 7a1d5cb

Please sign in to comment.