fix sequence checks in solomachine (#7586)
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
This commit is contained in:
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,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue