consensus

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: GPL-3.0 Imports: 28 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsensusComponentsFactory

func NewConsensusComponentsFactory(args ConsensusComponentsFactoryArgs) (*consensusComponentsFactory, error)

NewConsensusComponentsFactory creates an instance of consensusComponentsFactory

func NewManagedConsensusComponents

func NewManagedConsensusComponents(ccf *consensusComponentsFactory) (*managedConsensusComponents, error)

NewManagedConsensusComponents creates a managed consensus components handler

Types

type ConsensusComponentsFactoryArgs

type ConsensusComponentsFactoryArgs struct {
	Config                config.Config
	BootstrapRoundIndex   uint64
	CoreComponents        factory.CoreComponentsHolder
	NetworkComponents     factory.NetworkComponentsHolder
	CryptoComponents      factory.CryptoComponentsHolder
	DataComponents        factory.DataComponentsHolder
	ProcessComponents     factory.ProcessComponentsHolder
	StateComponents       factory.StateComponentsHolder
	StatusComponents      factory.StatusComponentsHolder
	StatusCoreComponents  factory.StatusCoreComponentsHolder
	ScheduledProcessor    consensus.ScheduledProcessor
	IsInImportMode        bool
	ShouldDisableWatchdog bool
}

ConsensusComponentsFactoryArgs holds the arguments needed to create a consensus components factory

Jump to

Keyboard shortcuts

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