Documentation ¶
Index ¶
- type Round
- func (r *Round) Candidate() *flow.Header
- func (r *Round) Leader() *flow.Identity
- func (r *Round) Parent() *flow.Header
- func (r *Round) Participants() flow.IdentityList
- func (r *Round) Propose(candidate *flow.Header)
- func (r *Round) Quorum() uint64
- func (r *Round) Tally(voterID flow.Identifier, stake uint64)
- func (r *Round) Voted(nodeID flow.Identifier) bool
- func (r *Round) Votes() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Round ¶
type Round struct {
// contains filtered or unexported fields
}
Round keeps track of the current consensus state.
func (*Round) Participants ¶
func (r *Round) Participants() flow.IdentityList
Participants will retrieve cached identities for this round.
func (*Round) Tally ¶
func (r *Round) Tally(voterID flow.Identifier, stake uint64)
Tally will add the given vote to the node tally.
Click to show internal directories.
Click to hide internal directories.