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

@ -24,7 +24,7 @@ type SignStatusClient interface {
type provider struct {
node SignStatusClient
lastHeight int
lastHeight uint64
}
// NewProvider can wrap any rpcclient to expose it as
@ -68,7 +68,7 @@ func (p *provider) GetByHash(hash []byte) (lite.FullCommit, error) {
}
// GetByHeight gets the validator set by height
func (p *provider) GetByHeight(h int) (fc lite.FullCommit, err error) {
func (p *provider) GetByHeight(h uint64) (fc lite.FullCommit, err error) {
commit, err := p.node.Commit(&h)
if err != nil {
return fc, err
@ -134,7 +134,7 @@ func (p *provider) seedFromCommit(commit *ctypes.ResultCommit) (fc lite.FullComm
return fc, nil
}
func (p *provider) updateHeight(h int) {
func (p *provider) updateHeight(h uint64) {
if h > p.lastHeight {
p.lastHeight = h
}