Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Oct 2, 2024
1 parent 450eea1 commit 7a5ce76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions relayer/relays/execution/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ func (r *Relay) doSubmit(ctx context.Context, ev *contracts.GatewayOutboundMessa
if err != nil {
return fmt.Errorf("fetch latest parachain nonce: %w", err)
}
// Check the nonce again in case another relayer processed the message while this relayer downloading beacon state
if ev.Nonce <= paraNonce {
log.WithField("nonce", paraNonce).Info("message picked up by another relayer, skipped")
return nil
Expand Down

0 comments on commit 7a5ce76

Please sign in to comment.