From 036a7ba3d32f351a9c6d12b01ee59f3b843db4ee Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Fri, 29 Jan 2021 18:46:23 +0000 Subject: [PATCH] store/multistore: revert a height limit increase from #8396 (#8466) See https://github.com/cosmos/cosmos-sdk/pull/8396#discussion_r565654207 Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- store/rootmulti/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/rootmulti/store.go b/store/rootmulti/store.go index 1ee4f03ea2..5365109143 100644 --- a/store/rootmulti/store.go +++ b/store/rootmulti/store.go @@ -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)) }