mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 12:51:22 +00:00
uint64 height (Refs #911)
This commit is contained in:
committed by
Ethan Buchman
parent
b2489b4318
commit
b3492356e6
@ -45,7 +45,7 @@ import (
|
||||
*/
|
||||
type VoteSet struct {
|
||||
chainID string
|
||||
height int
|
||||
height uint64
|
||||
round int
|
||||
type_ byte
|
||||
|
||||
@ -60,7 +60,7 @@ type VoteSet struct {
|
||||
}
|
||||
|
||||
// Constructs a new VoteSet struct used to accumulate votes for given height/round.
|
||||
func NewVoteSet(chainID string, height int, round int, type_ byte, valSet *ValidatorSet) *VoteSet {
|
||||
func NewVoteSet(chainID string, height uint64, round int, type_ byte, valSet *ValidatorSet) *VoteSet {
|
||||
if height == 0 {
|
||||
cmn.PanicSanity("Cannot make VoteSet for height == 0, doesn't make sense.")
|
||||
}
|
||||
@ -83,7 +83,7 @@ func (voteSet *VoteSet) ChainID() string {
|
||||
return voteSet.chainID
|
||||
}
|
||||
|
||||
func (voteSet *VoteSet) Height() int {
|
||||
func (voteSet *VoteSet) Height() uint64 {
|
||||
if voteSet == nil {
|
||||
return 0
|
||||
} else {
|
||||
@ -523,7 +523,7 @@ func (vs *blockVotes) getByIndex(index int) *Vote {
|
||||
|
||||
// Common interface between *consensus.VoteSet and types.Commit
|
||||
type VoteSetReader interface {
|
||||
Height() int
|
||||
Height() uint64
|
||||
Round() int
|
||||
Type() byte
|
||||
Size() int
|
||||
|
Reference in New Issue
Block a user