From 181289bae46f308ce473f1cf275d0126ec8f1708 Mon Sep 17 00:00:00 2001 From: Bhakiyaraj Kalimuthu Date: Mon, 19 Sep 2022 13:31:54 +0200 Subject: [PATCH] do not fetch bundle if empty block num during the starup (#29) * do not fetch bundle if empty block num during the startup --- flashbotsextra/fetcher.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flashbotsextra/fetcher.go b/flashbotsextra/fetcher.go index 14484e6917791..05e01c4a858a6 100644 --- a/flashbotsextra/fetcher.go +++ b/flashbotsextra/fetcher.go @@ -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()