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

# Packages

No description provided by the author

# 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.

# Interfaces

ChainManager defines the blockchain interface.

# Type aliases

ConsensusVoteTopic defines the topic of an consensus vote.
DelegatesByEpochFunc defines a function to overwrite candidates.
EndorsedByMajorityFunc defines a function to give an information of consensus status.