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, validatorStatsRootHash []byte, ) (data.HeaderHandler, error)
CreateShardGenesisBlockFromInitialBalances creates the genesis block body from map of account balances
Types ¶
type ArgsMetaGenesisBlockCreator ¶
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 DataPool dataRetriever.PoolsHolder ValidatorStatsRootHash []byte }
ArgsMetaGenesisBlockCreator holds the arguments which are needed to create a genesis metablock
Click to show internal directories.
Click to hide internal directories.