Compatibility with the ARM architecture (#8396)

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com>
This commit is contained in:
Riccardo Montagnin
2021-01-27 11:07:45 +00:00
committed by GitHub
co-authored by Alessio Treglia Jonathan Gimeno
parent fd04f41e23
commit e2f510afcc
7 changed files with 30 additions and 9 deletions
+2 -2
View File
@@ -711,9 +711,9 @@ func (rs *Store) Restore(
if height == 0 {
return sdkerrors.Wrap(sdkerrors.ErrLogic, "cannot restore snapshot at height 0")
}
if height > math.MaxInt64 {
if height > uint64(math.MaxUint64) {
return sdkerrors.Wrapf(snapshottypes.ErrInvalidMetadata,
"snapshot height %v cannot exceed %v", height, math.MaxInt64)
"snapshot height %v cannot exceed %v", height, int64(math.MaxInt64))
}
// Signal readiness. Must be done before the readers below are set up, since the zlib