vote

package
v0.15.21 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVoteBroadcaster added in v0.14.7

func NewVoteBroadcaster[H types.Hash, A types.Addr](
	log utils.Logger,
	voteAdapter VoteAdapter[H, A],
	bufferSizeConfig *config.BufferSizes,
) voteBroadcaster[H, A]

func NewVoteListeners added in v0.14.7

func NewVoteListeners[V types.Hashable[H], H types.Hash, A types.Addr](
	log utils.Logger,
	voteAdapter VoteAdapter[H, A],
	bufferSizeConfig *config.BufferSizes,
) voteListeners[V, H, A]

Types

type VoteAdapter

type VoteAdapter[H types.Hash, A types.Addr] interface {
	ToVote(*consensus.Vote) (types.Vote[H, A], error)
	FromVote(*types.Vote[H, A], consensus.Vote_VoteType) (consensus.Vote, error)
}
var StarknetVoteAdapter VoteAdapter[starknet.Hash, starknet.Address] = starknetVoteAdapter{}

Jump to

Keyboard shortcuts

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