Skip to content

Commit

Permalink
wait for confs before checking message processable
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed May 1, 2024
1 parent ff7d243 commit 4a2ec4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/relayer/processor/process_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ func (p *Processor) processMessage(
return false, msgBody.TimesRetried, nil
}

if err := p.waitForConfirmations(ctx, msgBody.Event.Raw.TxHash, msgBody.Event.Raw.BlockNumber); err != nil {
return false, msgBody.TimesRetried, err
}

eventStatus, err := p.eventStatusFromMsgHash(ctx, msgBody.Event.MsgHash)
if err != nil {
return false, msgBody.TimesRetried, errors.Wrap(err, "p.eventStatusFromMsgHash")
Expand All @@ -89,10 +93,6 @@ func (p *Processor) processMessage(
return false, msgBody.TimesRetried, nil
}

if err := p.waitForConfirmations(ctx, msgBody.Event.Raw.TxHash, msgBody.Event.Raw.BlockNumber); err != nil {
return false, msgBody.TimesRetried, err
}

encodedSignalProof, err := p.generateEncodedSignalProof(ctx, msgBody.Event)
if err != nil {
return false, msgBody.TimesRetried, err
Expand Down

0 comments on commit 4a2ec4c

Please sign in to comment.