package
0.5.0
Repository: https://github.com/frankonly/iotex-core.git
Documentation: pkg.go.dev

# Functions

NewConsensusVote creates a consensus vote.
NewEndorsedConsensusMessage creates an EndorsedConsensusMessage for an consensus vote.
NewRollDPoSBuilder instantiates a Builder instance.

# Constants

COMMIT stands for an consensus vote to endorse a block commit.
LOCK stands for an consensus vote to endorse a lock on a proposed block.
PROPOSAL stands for an consensus vote to endorse a block proposal.

# Variables

ErrExpiredEndorsement indicates that the endorsement is expired.
ErrInsufficientEndorsements represents the error that not enough endorsements.
ErrNewRollDPoS indicates the error of constructing RollDPoS.
ErrNotEnoughCandidates indicates there are not enough candidates from the candidate pool.
ErrZeroDelegate indicates seeing 0 delegates in the network.

# Structs

Builder is the builder for RollDPoS.
ConsensusVote is a vote on a given topic for a block on a specific height.
EndorsedConsensusMessage is an endorsement on document.
RollDPoS is Roll-DPoS consensus main entrance.

# Type aliases

CandidatesByHeightFunc defines a function to overwrite candidates.
ConsensusVoteTopic defines the topic of an consensus vote.