Skip to content

Commit

Permalink
store/multistore: revert a height limit increase from #8396
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Treglia committed Jan 28, 2021
1 parent 784a9a6 commit 6874114
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 @@ -711,7 +711,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 6874114

Please sign in to comment.