Documentation ¶
Index ¶
- func CreateMetaGenesisBlock(args ArgsMetaGenesisBlockCreator) (data.HeaderHandler, error)
- func CreateShardGenesisBlockFromInitialBalances(accounts state.AccountsAdapter, shardCoordinator sharding.Coordinator, ...) (data.HeaderHandler, error)
- func NewGenesisFeeHandler() *feeHandler
- type ArgsMetaGenesisBlockCreator
- type NilMessageSignVerifier
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, pubkeyConv state.PubkeyConverter, initialBalances map[string]*big.Int, genesisTime uint64, ) (data.HeaderHandler, error)
CreateShardGenesisBlockFromInitialBalances creates the genesis block body from map of account balances
func NewGenesisFeeHandler ¶
func NewGenesisFeeHandler() *feeHandler
NewGenesisFeeHandler returns a new genesis fee handler
Types ¶
type ArgsMetaGenesisBlockCreator ¶
type ArgsMetaGenesisBlockCreator struct { GenesisTime uint64 Accounts state.AccountsAdapter PubkeyConv state.PubkeyConverter NodesSetup sharding.GenesisNodesSetupHandler 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 MessageSignVerifier vm.MessageSignVerifier GasMap map[string]map[string]uint64 SystemSCConfig *config.SystemSmartContractsConfig }
ArgsMetaGenesisBlockCreator holds the arguments which are needed to create a genesis metablock
type NilMessageSignVerifier ¶
type NilMessageSignVerifier struct { }
NilMessageSignVerifier represents the message verifier that accepts any message, sign, pk tuple
func (*NilMessageSignVerifier) IsInterfaceNil ¶
func (nmsv *NilMessageSignVerifier) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
Click to show internal directories.
Click to hide internal directories.