package
3.0.3+incompatible
Repository: https://github.com/truechain/truechain-engineering-code.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

CompareHRS is compare msg'and peerSet's height round Step.
MakeValidators is make CommitteeInfo to ValidatorSet.
NewConsensusReactor returns a new ConsensusReactor with the given consensusState.
NewConsensusState returns a new ConsensusState.
NewNode returns a new, ready to go, truechain Node.
NewPeerState returns a new PeerState for the given Peer.
NewTimeoutTicker returns a new TimeoutTicker.
RegisterConsensusMessages is register all consensus message.

# Constants

DataChannel is channel state.
Start is status for notify.
StateChannel is channel state.
Stop is status for notify.
Switch is status for notify.
VoteChannel is channel state.
VoteSetBitsChannel is channel state.

# Variables

ErrAddingVote is Error adding vote.
ErrInvalidProposalPOLRound is Error invalid proposal POL round.
ErrInvalidProposalSignature is Error invalid proposal signature.
ErrVoteHeightMismatch is Error vote height mismatch.

# Structs

BlockPartMessage is sent when gossipping a piece of the proposed block.
CommitStepMessage is sent when a block is committed.
ConsensusReactor defines a reactor for the consensus service.
ConsensusState handles execution of the consensus algorithm.
HasVoteMessage is sent to indicate that a particular vote has been received.
NewRoundStepMessage is sent for every step taken in the ConsensusState.
Node is the highest level interface to a full truechain node.
PeerState contains the known state of a peer, including its connection and threadsafe access to its PeerRoundState.
ProposalMessage is sent when a new block is proposed.
ProposalPOLMessage is sent when a previous proposal is re-proposed.
ValidatorUpdateMessage is send when a new committee is elected.
VoteMessage is sent when voting for a proposal (or lack thereof).
VoteSetBitsMessage is sent to communicate the bit-array of votes seen for the BlockID.
VoteSetMaj23Message is sent to indicate that a given BlockID has seen +2/3 votes.

# Interfaces

ConsensusMessage is a message that can be sent and received on the ConsensusReactor.
TimeoutTicker is a timer that schedules timeouts conditional on the height/round/step in the timeoutInfo.

# Type aliases

CSOption sets an optional parameter on the ConsensusState.