Skip to content

Commit

Permalink
store/multistore: revert a height limit increase from #8396 (#8466)
Browse files Browse the repository at this point in the history
See cosmos/cosmos-sdk#8396 (comment)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and daeMOn63 committed Aug 18, 2021
1 parent 68b1b86 commit 1315caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/rootmulti/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ func (rs *Store) Restore(
if height == 0 {
return sdkerrors.Wrap(sdkerrors.ErrLogic, "cannot restore snapshot at height 0")
}
if height > uint64(math.MaxUint64) {
if height > uint64(math.MaxInt64) {
return sdkerrors.Wrapf(snapshottypes.ErrInvalidMetadata,
"snapshot height %v cannot exceed %v", height, int64(math.MaxInt64))
}
Expand Down

0 comments on commit 1315caf

Please sign in to comment.