Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Voting ¶
type VotingData ¶ added in v0.12.0
type VotingData struct { Voting // contains filtered or unexported fields }
func (*VotingData) ElectedCandidate ¶ added in v0.12.0
func (v *VotingData) ElectedCandidate() (upstream.Upstream, uint64, error)
ElectedCandidate - get candidate that is most vote
func (*VotingData) NumVoteOfDigest ¶ added in v0.12.0
func (v *VotingData) NumVoteOfDigest(digest blockdigest.Digest) int
NumVoteOfDigest - number of votest for a digest
func (*VotingData) SetMinHeight ¶ added in v0.12.0
func (v *VotingData) SetMinHeight(height uint64)
SetMinHeight - set minimum height for vote
func (*VotingData) VoteBy ¶ added in v0.12.0
func (v *VotingData) VoteBy(candidate upstream.Upstream)
VoteBy - vote by some upstream
Click to show internal directories.
Click to hide internal directories.