storageBootstrap

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 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
}

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