Skip to content

Commit

Permalink
Expect ErrWrongSequence error when relayer submits an evidence. (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitryhil committed Apr 22, 2024
1 parent e384e9c commit 4b0dc37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion relayer/processes/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"

sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
rippledata "github.com/rubblelabs/ripple/data"

"github.com/CoreumFoundation/coreumbridge-xrpl/relayer/coreum"
Expand Down Expand Up @@ -85,7 +86,8 @@ func IsExpectedEvidenceSubmissionError(err error) bool {
coreum.IsProhibitedAddressError(err) ||
coreum.IsBridgeHaltedError(err) ||
coreum.IsAmountSentIsZeroAfterTruncationError(err) ||
coreum.IsCannotCoverBridgingFeesError(err)
coreum.IsCannotCoverBridgingFeesError(err) ||
sdkerrors.ErrWrongSequence.Is(err)
}

// IsUnexpectedEvidenceSubmissionError returns true is the error is related to potential malicious behaviour.
Expand Down

0 comments on commit 4b0dc37

Please sign in to comment.