bootstrap

package
v1.10.6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: GPL-3.0 Imports: 33 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 CreateNodesCoordinator

func CreateNodesCoordinator(
	nodeShufflerOut factory.ShuffleOutCloser,
	nodesConfig sharding.GenesisNodesSetupHandler,
	prefsConfig config.PreferencesConfig,
	epochStartNotifier epochStart.RegistrationHandler,
	pubKey crypto.PublicKey,
	marshalizer marshal.Marshalizer,
	hasher hashing.Hasher,
	ratingAndListIndexHandler nodesCoordinator.ChanceComputer,
	bootStorer storage.Storer,
	nodeShuffler nodesCoordinator.NodesShuffler,
	currentShardID uint32,
	bootstrapParameters factory.BootstrapParamsHolder,
	startEpoch uint32,
	chanNodeStop chan endProcess.ArgEndProcess,
	nodeTypeProvider core.NodeTypeProviderHandler,
	enableEpochsHandler common.EnableEpochsHandler,
	validatorInfoCacher epochStart.ValidatorInfoCacher,
	nodesCoordinatorRegistryFactory nodesCoordinator.NodesCoordinatorRegistryFactory,
	chainParametersHandler process.ChainParametersHandler,
) (nodesCoordinator.NodesCoordinator, error)

CreateNodesCoordinator is the nodes coordinator factory

func CreateNodesShuffleOut

func CreateNodesShuffleOut(
	nodesConfig sharding.GenesisNodesSetupHandler,
	epochConfig config.EpochStartConfig,
	chanStopNodeProcess chan endProcess.ArgEndProcess,
) (factory.ShuffleOutCloser, error)

CreateNodesShuffleOut is the nodes shuffler closer factory

func CreateShardCoordinator

func CreateShardCoordinator(
	nodesConfig sharding.GenesisNodesSetupHandler,
	pubKey crypto.PublicKey,
	prefsConfig config.PreferencesConfig,
	log logger.Logger,
) (sharding.Coordinator, core.NodeType, error)

CreateShardCoordinator is the shard coordinator factory

func NewBootstrapComponentsFactory

func NewBootstrapComponentsFactory(args BootstrapComponentsFactoryArgs) (*bootstrapComponentsFactory, error)

NewBootstrapComponentsFactory creates an instance of bootstrapComponentsFactory

func NewManagedBootstrapComponents

func NewManagedBootstrapComponents(bootstrapComponentsFactory *bootstrapComponentsFactory) (*managedBootstrapComponents, error)

NewManagedBootstrapComponents creates a managed bootstrap components handler

func NewTestManagedBootstrapComponents

func NewTestManagedBootstrapComponents(bootstrapComponentsFactory *bootstrapComponentsFactory) (*testManagedBootstrapComponents, error)

NewTestManagedBootstrapComponents creates an instance of a test managed bootstrap components

Types

type BootstrapComponentsFactoryArgs

type BootstrapComponentsFactoryArgs struct {
	Config                         config.Config
	RoundConfig                    config.RoundConfig
	PrefConfig                     config.Preferences
	ImportDbConfig                 config.ImportDbConfig
	FlagsConfig                    config.ContextFlagsConfig
	WorkingDir                     string
	CoreComponents                 factory.CoreComponentsHolder
	CryptoComponents               factory.CryptoComponentsHolder
	NetworkComponents              factory.NetworkComponentsHolder
	StatusCoreComponents           factory.StatusCoreComponentsHolder
	InterceptedDataVerifierFactory process.InterceptedDataVerifierFactory
}

BootstrapComponentsFactoryArgs holds the arguments needed to create a bootstrap components factory

Jump to

Keyboard shortcuts

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