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 13:35:52 +00:00
committed by GitHub
co-authored by colin axnér
parent 8eaf2ececc
commit ba2799ec6d
@@ -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,
)
}