Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ConsensusTypeSolo identifies the solo consensus implementation. ConsensusTypeSolo = "solo" // ConsensusTypeKafka identifies the Kafka-based consensus implementation. ConsensusTypeKafka = "kafka" // TestChainID is the default value of ChainID. It is used by all testing // networks. It it necessary to set and export this variable so that test // clients can connect without being rejected for targeting a chain which // does not exist. TestChainID = "testchainid" // BlockValidationPolicyKey TODO BlockValidationPolicyKey = "BlockValidation" // OrdererAdminsPolicy is the absolute path to the orderer admins policy OrdererAdminsPolicy = "/Channel/Orderer/Admins" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator interface { bootstrap.Helper // ChannelTemplate returns a template which can be used to help initialize a channel ChannelTemplate() configtx.Template // GenesisBlockForChannel TODO GenesisBlockForChannel(channelID string) *cb.Block }
Generator can either create an orderer genesis block or config template
func New ¶
func New(conf *genesisconfig.Profile) Generator
New returns a new provisional bootstrap helper.
Click to show internal directories.
Click to hide internal directories.