explicitly type MaxTotalVotingPower to int64 (#2953)

This commit is contained in:
Ismail Khoffi 2018-11-30 20:43:16 +01:00 committed by Ethan Buchman
parent dc2a338d96
commit c4d93fd27b

View File

@ -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.