Documentation
¶
Overview ¶
Package chain provides chain consensus engine types and interfaces.
Vote Terminology ¶
This package uses "Vote" as the semantic name for validator responses. Vote (wire format: Chits): The underlying network protocol transmits votes using the Chits message format for backwards compatibility.
The VoteMessage type provides a semantic wrapper around the wire format:
type VoteMessage struct {
BlockID ids.ID
RequestID uint32
}
UnsolicitedVoteRequestID (value 0) indicates a vote sent without a prior request, used in fast-follow scenarios where a follower sends a vote back to the proposer after accepting a gossiped block.
Index ¶
Constants ¶
const ( // UnsolicitedVoteRequestID indicates a vote sent without a prior request. // This is used in fast-follow scenarios where a follower node sends // a vote back to the proposer after accepting a gossiped block. UnsolicitedVoteRequestID = uint32(0) )
Vote constants for consensus message handling.
Vote is the semantic name for a validator's response to a block proposal. On the wire, votes are transmitted using the "Vote" message format for backwards compatibility with existing network protocols.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VoteMessage ¶ added in v1.22.82
VoteMessage represents a vote for a specific block. This is a semantic wrapper - the wire format remains Vote.