storageBootstrap

package
v1.3.10 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: GPL-3.0 Imports: 15 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             sharding.NodesCoordinator
	EpochStartTrigger            process.EpochStartTriggerHandler
	BlockTracker                 process.BlockTracker
	ChainID                      string
	ScheduledTxsExecutionHandler process.ScheduledTxsExecutionHandler
	MiniblocksProvider           process.MiniBlockProvider
}

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

Jump to

Keyboard shortcuts

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