uint64 height (Refs #911)

This commit is contained in:
Anton Kaliaev
2017-11-30 13:08:38 -06:00
committed by Ethan Buchman
parent b2489b4318
commit b3492356e6
64 changed files with 296 additions and 270 deletions

View File

@ -19,11 +19,11 @@ var _ Certifier = &Dynamic{}
// going forward.
type Dynamic struct {
cert *Static
lastHeight int
lastHeight uint64
}
// NewDynamic returns a new dynamic certifier.
func NewDynamic(chainID string, vals *types.ValidatorSet, height int) *Dynamic {
func NewDynamic(chainID string, vals *types.ValidatorSet, height uint64) *Dynamic {
return &Dynamic{
cert: NewStatic(chainID, vals),
lastHeight: height,
@ -46,7 +46,7 @@ func (c *Dynamic) Hash() []byte {
}
// LastHeight returns the last height of this certifier.
func (c *Dynamic) LastHeight() int {
func (c *Dynamic) LastHeight() uint64 {
return c.lastHeight
}