Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodino committed Mar 17, 2024
1 parent caf3cff commit cb35a58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/relayer/indexer/handle_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ func (i *Indexer) handleEvent(
event *bridge.BridgeMessageSent,
) error {
slog.Info("event found for msgHash", "msgHash", common.Hash(event.MsgHash).Hex(), "txHash", event.Raw.TxHash.Hex())
// if the destinatio chain doesnt match, we dont process it in this indexer.

// if the destinatio chain doesnt match, we dont process it in this indexer.
if new(big.Int).SetUint64(event.Message.DestChainId).Cmp(i.destChainId) != 0 {
slog.Info("skipping event, wrong chainID",
"messageDestChainID",
Expand Down Expand Up @@ -142,6 +142,7 @@ func (i *Indexer) handleEvent(
// If the status from contract matches the existing event status,
// we can return early as this message has been processed as expected.
slog.Info("crawler returning early", "eventStatus", eventStatus, "existingEvent.Status", existingEvent.Status)

return nil
}

Expand Down

0 comments on commit cb35a58

Please sign in to comment.