process

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: GPL-3.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMetaGenesisBlock

func CreateMetaGenesisBlock(arg ArgsGenesisBlockCreator, nodesListSplitter genesis.NodesListSplitter, _ uint32) (data.HeaderHandler, error)

CreateMetaGenesisBlock will create a metachain genesis block

func CreateShardGenesisBlock

func CreateShardGenesisBlock(arg ArgsGenesisBlockCreator, nodesListSplitter genesis.NodesListSplitter, selfShardID uint32) (data.HeaderHandler, error)

CreateShardGenesisBlock will create a shard genesis block

func NewGenesisBlockCreator

func NewGenesisBlockCreator(arg ArgsGenesisBlockCreator) (*genesisBlockCreator, error)

NewGenesisBlockCreator creates a new genesis block creator instance able to create genesis blocks on all initial shards

Types

type ArgsGenesisBlockCreator

type ArgsGenesisBlockCreator struct {
	GenesisTime              uint64
	StartEpochNum            uint32
	Accounts                 state.AccountsAdapter
	ValidatorAccounts        state.AccountsAdapter
	PubkeyConv               core.PubkeyConverter
	InitialNodesSetup        genesis.InitialNodesHandler
	Economics                *economics.EconomicsData //TODO refactor and use an interface
	ShardCoordinator         sharding.Coordinator
	Store                    dataRetriever.StorageService
	Blkc                     data.ChainHandler
	Marshalizer              marshal.Marshalizer
	SignMarshalizer          marshal.Marshalizer
	Hasher                   hashing.Hasher
	Uint64ByteSliceConverter typeConverters.Uint64ByteSliceConverter
	DataPool                 dataRetriever.PoolsHolder
	AccountsParser           genesis.AccountsParser
	SmartContractParser      genesis.InitialSmartContractParser
	GasMap                   map[string]map[string]uint64
	TxLogsProcessor          process.TransactionLogProcessor
	VirtualMachineConfig     config.VirtualMachineConfig
	HardForkConfig           config.HardforkConfig
	TrieStorageManagers      map[string]data.StorageManager
	ChainID                  string
	SystemSCConfig           config.SystemSmartContractsConfig
	BlockSignKeyGen          crypto.KeyGenerator
	ImportStartHandler       update.ImportStartHandler
	WorkingDir               string
	GenesisNodePrice         *big.Int
	GenesisString            string
	// contains filtered or unexported fields
}

ArgsGenesisBlockCreator holds the arguments which are needed to create a genesis block

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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