Skip to content

Commit

Permalink
dont handle removed events
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Jan 29, 2024
1 parent 17e32b7 commit 0bea510
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/relayer/indexer/handle_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ func (i *Indexer) handleEvent(
return nil
}

if event.Raw.Removed {
slog.Info("event is removed")
return nil
}

// check if we have seen this event and msgHash before - if we have, it is being reorged.
if err := i.detectAndHandleReorg(ctx, relayer.EventNameMessageSent, common.Hash(event.MsgHash).Hex()); err != nil {
return errors.Wrap(err, "svc.detectAndHandleReorg")
Expand Down

0 comments on commit 0bea510

Please sign in to comment.