storageBootstrap

package
v1.7.14 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetaStorageBootstrapper

func NewMetaStorageBootstrapper(arguments ArgsMetaStorageBootstrapper) (*metaStorageBootstrapper, error)

NewMetaStorageBootstrapper is method used to create a new storage bootstrapper

func NewShardStorageBootstrapper

func NewShardStorageBootstrapper(arguments ArgsShardStorageBootstrapper) (*shardStorageBootstrapper, error)

NewShardStorageBootstrapper is method used to create a new storage bootstrapper

Types

type ArgsBaseStorageBootstrapper

type ArgsBaseStorageBootstrapper struct {
	BootStorer                   process.BootStorer
	ForkDetector                 process.ForkDetector
	BlockProcessor               process.BlockProcessor
	ChainHandler                 data.ChainHandler
	Marshalizer                  marshal.Marshalizer
	Store                        dataRetriever.StorageService
	Uint64Converter              typeConverters.Uint64ByteSliceConverter
	BootstrapRoundIndex          uint64
	ShardCoordinator             sharding.Coordinator
	NodesCoordinator             nodesCoordinator.NodesCoordinator
	EpochStartTrigger            process.EpochStartTriggerHandler
	BlockTracker                 process.BlockTracker
	ChainID                      string
	ScheduledTxsExecutionHandler process.ScheduledTxsExecutionHandler
	MiniblocksProvider           process.MiniBlockProvider
	EpochNotifier                process.EpochNotifier
	ProcessedMiniBlocksTracker   process.ProcessedMiniBlocksTracker
	AppStatusHandler             core.AppStatusHandler
}

ArgsBaseStorageBootstrapper is structure used to create a new storage bootstrapper

type ArgsMetaStorageBootstrapper

type ArgsMetaStorageBootstrapper struct {
	ArgsBaseStorageBootstrapper
	PendingMiniBlocksHandler process.PendingMiniBlocksHandler
}

ArgsMetaStorageBootstrapper is structure used to create a new storage bootstrapper for metachain

type ArgsShardStorageBootstrapper

type ArgsShardStorageBootstrapper struct {
	ArgsBaseStorageBootstrapper
}

ArgsShardStorageBootstrapper is structure used to create a new storage bootstrapper for shard

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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