From c4d93fd27b5b2b9785f47a71edf5eba569411a72 Mon Sep 17 00:00:00 2001 From: Ismail Khoffi Date: Fri, 30 Nov 2018 20:43:16 +0100 Subject: [PATCH] explicitly type MaxTotalVotingPower to int64 (#2953) --- types/validator_set.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/validator_set.go b/types/validator_set.go index c62261d20..8b2d71b8d 100644 --- a/types/validator_set.go +++ b/types/validator_set.go @@ -19,7 +19,7 @@ import ( // x + (x >> 3) = x + x/8 = x * (1 + 0.125). // MaxTotalVotingPower is the largest int64 `x` with the property that `x + (x >> 3)` is // still in the bounds of int64. -const MaxTotalVotingPower = 8198552921648689607 +const MaxTotalVotingPower = int64(8198552921648689607) // ValidatorSet represent a set of *Validator at a given height. // The validators can be fetched by address or index.