Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMetaGenesisBlock ¶
func CreateMetaGenesisBlock( args ArgsMetaGenesisBlockCreator, ) (data.HeaderHandler, error)
CreateMetaGenesisBlock creates the meta genesis block
func CreateShardGenesisBlockFromInitialBalances ¶
func CreateShardGenesisBlockFromInitialBalances( accounts state.AccountsAdapter, shardCoordinator sharding.Coordinator, addrConv state.AddressConverter, initialBalances map[string]*big.Int, genesisTime uint64, ) (data.HeaderHandler, error)
CreateShardGenesisBlockFromInitialBalances creates the genesis block body from map of account balances
Types ¶
type ArgsMetaGenesisBlockCreator ¶ added in v1.0.39
type ArgsMetaGenesisBlockCreator struct { GenesisTime uint64 Accounts state.AccountsAdapter AddrConv state.AddressConverter NodesSetup *sharding.NodesSetup Economics *economics.EconomicsData ShardCoordinator sharding.Coordinator Store dataRetriever.StorageService Blkc data.ChainHandler Marshalizer marshal.Marshalizer Hasher hashing.Hasher Uint64ByteSliceConverter typeConverters.Uint64ByteSliceConverter MetaDatapool dataRetriever.MetaPoolsHolder }
ArgsMetaGenesisBlockCreator holds the arguments which are needed to create a genesis metablock
Click to show internal directories.
Click to hide internal directories.