From d48436dd4948fb4163e6b413b7182c1527bb9c0f Mon Sep 17 00:00:00 2001 From: Ganesh Vanahalli Date: Mon, 6 Jan 2025 11:32:36 -0600 Subject: [PATCH] fix filterLogs params for auction contract. Avoid fetching same log twice --- execution/gethexec/express_lane_service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/execution/gethexec/express_lane_service.go b/execution/gethexec/express_lane_service.go index 509f5d56ee..c47d606c9e 100644 --- a/execution/gethexec/express_lane_service.go +++ b/execution/gethexec/express_lane_service.go @@ -237,7 +237,7 @@ func (es *expressLaneService) Start(ctxIn context.Context) { log.Crit("Could not get latest header", "err", err) } toBlock := latestBlock.Number.Uint64() - if fromBlock == toBlock { + if fromBlock > toBlock { continue } filterOpts := &bind.FilterOpts{ @@ -313,7 +313,7 @@ func (es *expressLaneService) Start(ctxIn context.Context) { es.msgAndResultBySequenceNumber = make(map[uint64]*msgAndResult) es.Unlock() } - fromBlock = toBlock + fromBlock = toBlock + 1 } } })