Help us shape the future of Go! Take the 2026 Go Developer Survey

proposer

package
v0.15.20 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProposalBroadcaster

func NewProposalBroadcaster[V types.Hashable[H], H types.Hash, A types.Addr](
	log utils.Logger,
	proposalAdapter ProposerAdapter[V, H, A],
	proposalStore *proposal.ProposalStore[H],
	bufferSize int,
	retryInterval time.Duration,
) proposalBroadcaster[V, H, A]

Types

type ProposerAdapter

type ProposerAdapter[V types.Hashable[H], H types.Hash, A types.Addr] interface {
	ProposalInit(*types.Proposal[V, H, A]) (types.ProposalInit, error)
	ProposalBlockInfo(*builder.BuildResult) (types.BlockInfo, error)
	ProposalTransactions(*builder.BuildResult) ([]types.Transaction, error)
	ProposalCommitment(*builder.BuildResult) (types.ProposalCommitment, error)
	ProposalFin(*types.Proposal[V, H, A]) (types.ProposalFin, error)
}

Jump to

Keyboard shortcuts

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