From 68741146fc9709a42a7a03fbed435bfb27872f07 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Thu, 28 Jan 2021 13:39:32 +0000 Subject: [PATCH] store/multistore: revert a height limit increase from #8396 See https://github.com/cosmos/cosmos-sdk/pull/8396#discussion_r565654207 --- 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 0e8cba44ef5e..1ca43eae9d4e 100644 --- a/store/rootmulti/store.go +++ b/store/rootmulti/store.go @@ -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)) }