From 42daf90587a22164cc2e4b6afce1dd4b6f0f0a5f Mon Sep 17 00:00:00 2001 From: Jeffery Walsh Date: Sat, 2 Mar 2024 11:49:59 -0800 Subject: [PATCH] move duplicate --- packages/relayer/indexer/detect_and_handle_reorg.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/relayer/indexer/detect_and_handle_reorg.go b/packages/relayer/indexer/detect_and_handle_reorg.go index 30d5efa35d3..c82c75f1d99 100644 --- a/packages/relayer/indexer/detect_and_handle_reorg.go +++ b/packages/relayer/indexer/detect_and_handle_reorg.go @@ -9,12 +9,6 @@ import ( ) func (i *Indexer) detectAndHandleReorg(ctx context.Context, eventType string, msgHash string) error { - // dont check on crawling past blocks, it will be a secondary indexer. - // we expect to see duplicates in this mode. - if i.watchMode == CrawlPastBlocks { - return nil - } - e, err := i.eventRepo.FirstByEventAndMsgHash(ctx, eventType, msgHash) if err != nil { return errors.Wrap(err, "svc.eventRepo.FirstByMsgHash")