chain

package
v1.22.82 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

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

View Source
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

type VoteMessage struct {
	BlockID   ids.ID
	RequestID uint32
}

VoteMessage represents a vote for a specific block. This is a semantic wrapper - the wire format remains Vote.

Jump to

Keyboard shortcuts

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