...

Package test

import "github.com/hyperledger/fabric/common/configtx/test"
Overview
Index

Overview ▾

func MakeGenesisBlock

func MakeGenesisBlock(chainID string) (*cb.Block, error)

MakeGenesisBlock creates a genesis block using the test templates for the given chainID

func MakeGenesisBlockFromMSPs

func MakeGenesisBlockFromMSPs(chainID string, appMSPConf, ordererMSPConf *mspproto.MSPConfig, appOrgID, ordererOrgID string) (*cb.Block, error)

MakeGenesisBlockWithMSPs creates a genesis block using the MSPs provided for the given chainID