fix sequence checks in solomachine (#7586)

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
This commit is contained in:
Jun Kimura 2020-10-19 22:35:52 +09:00 committed by GitHub
parent 8eaf2ececc
commit ba2799ec6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -439,10 +439,10 @@ func produceVerificationArgs(
}
latestSequence := cs.GetLatestHeight().GetVersionHeight()
if latestSequence < sequence {
if latestSequence != sequence {
return nil, 0, 0, sdkerrors.Wrapf(
sdkerrors.ErrInvalidHeight,
"client state sequence < proof sequence (%d < %d)", latestSequence, sequence,
"client state sequence != proof sequence (%d != %d)", latestSequence, sequence,
)
}