Skip to content

Commit

Permalink
fix filterLogs params for auction contract. Avoid fetching same log t…
Browse files Browse the repository at this point in the history
…wice
  • Loading branch information
ganeshvanahalli committed Jan 6, 2025
1 parent d624150 commit d48436d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions execution/gethexec/express_lane_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -313,7 +313,7 @@ func (es *expressLaneService) Start(ctxIn context.Context) {
es.msgAndResultBySequenceNumber = make(map[uint64]*msgAndResult)
es.Unlock()
}
fromBlock = toBlock
fromBlock = toBlock + 1
}
}
})
Expand Down

0 comments on commit d48436d

Please sign in to comment.