voteset

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VoteSet

type VoteSet struct {
	// contains filtered or unexported fields
}

func NewVoteSet

func NewVoteSet(round int16, voteType vote.Type, validators []*validator.Validator) *VoteSet

func (*VoteSet) AddVote

func (vs *VoteSet) AddVote(v *vote.Vote) error

func (*VoteSet) AllVotes

func (vs *VoteSet) AllVotes() []*vote.Vote

func (*VoteSet) BlockHashHasOneThirdOfTotalPower

func (vs *VoteSet) BlockHashHasOneThirdOfTotalPower(hash hash.Hash) bool

func (*VoteSet) Fingerprint

func (vs *VoteSet) Fingerprint() string

func (*VoteSet) Len

func (vs *VoteSet) Len() int

func (*VoteSet) QuorumHash

func (vs *VoteSet) QuorumHash() *hash.Hash

func (*VoteSet) Round

func (vs *VoteSet) Round() int16

func (*VoteSet) ToCertificate

func (vs *VoteSet) ToCertificate() *block.Certificate

func (*VoteSet) Type

func (vs *VoteSet) Type() vote.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL