Tools, FAQ, Tutorials:
"byfn.sh generate" - Generate BYFN Configuration
How to run "byfn.sh generate" to Generate BYFN Network Configuration?
✍: FYIcenter.com
You can follow this tutorial to run "byfn.sh generate" to Generate BYFN Network Configuration with default values.
The "./byfn.sh generate" command automatically calls: "../bin/cryptogen" to generate certificates, and "../bin/configtxgen" to generate the Genesis block,
$ cd hyperledger-binaries/fabric-samples/first-network $ ./byfn.sh generate Generating certs and genesis block for channel 'mychannel' with CLI timeout of '10' seconds and CLI delay of '3' seconds Continue? [Y/n] y proceeding ... ../bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml org1.example.com org2.example.com + res=0 + set +x ../bin/configtxgen ########################################################## ######### Generating Orderer Genesis block ############## ########################################################## CONSENSUS_TYPE=solo + '[' solo == solo ']' + configtxgen -profile TwoOrgsOrdererGenesis -channelID byfn-sys-channel \ -outputBlock ./channel-artifacts/genesis.block ... [common.tools.configtxgen] main -> INFO 001 Loading configuration ... [common.tools.configtxgen.localconfig] completeInitialization \ -> INFO 002 orderer type: solo ... [common.tools.configtxgen.localconfig] Load -> INFO 003 Loaded configuration: \ ./configtx.yaml ... [common.tools.configtxgen.localconfig] completeInitialization \ -> INFO 004 orderer type: solo ... [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 005 Loaded \ configuration: ./configtx.yaml ... [common.tools.configtxgen] doOutputBlock -> INFO 006 Generating genesis block ... [common.tools.configtxgen] doOutputBlock -> INFO 007 Writing genesis block + res=0 + set +x ################################################################# ### Generating channel configuration transaction 'channel.tx' ### ################################################################# + configtxgen -profile TwoOrgsChannel -outputCreateChannelTx \ ./channel-artifacts/channel.tx -channelID mychannel .. [common.tools.configtxgen] main -> INFO 001 Loading configuration .. [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: \ ./configtx.yaml .. [common.tools.configtxgen.localconfig] completeInitialization \ -> INFO 003 orderer type: solo .. [common.tools.configtxgen.localconfig] LoadTopLevel \ -> INFO 004 Loaded configuration: ./configtx.yaml .. [common.tools.configtxgen] doOutputChannelCreateTx \ -> INFO 005 Generating new channel configtx .. [common.tools.configtxgen] doOutputChannelCreateTx \ -> INFO 006 Writing new channel tx + res=0 + set +x ################################################################# ####### Generating anchor peer update for Org1MSP ########## ################################################################# + configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate \ ./channel-artifacts/Org1MSPanchors.tx -channelID mychannel -asOrg Org1MSP ... [common.tools.configtxgen] main -> INFO 001 Loading configuration ... [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: \ ./first-network/configtx.yaml ... [common.tools.configtxgen.localconfig] completeInitialization \ -> INFO 003 orderer type: solo ... [common.tools.configtxgen.localconfig] LoadTopLevel \ -> INFO 004 Loaded configuration: ./configtx.yaml ... [common.tools.configtxgen] doOutputAnchorPeersUpdate \ -> INFO 005 Generating anchor peer update ... [common.tools.configtxgen] doOutputAnchorPeersUpdate \ -> INFO 006 Writing anchor peer update + res=0 + set +x ################################################################# ####### Generating anchor peer update for Org2MSP ########## ################################################################# + configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx -channelID mychannel -asOrg Org2MSP ... [common.tools.configtxgen] main -> INFO 001 Loading configuration ... [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: \ ./configtx.yaml ... [common.tools.configtxgen.localconfig] completeInitialization \ -> INFO 003 orderer type: solo ... [common.tools.configtxgen.localconfig] LoadTopLevel \ -> INFO 004 Loaded configuration: ./configtx.yaml ... [common.tools.configtxgen] doOutputAnchorPeersUpdate \ -> INFO 005 Generating anchor peer update ... [common.tools.configtxgen] doOutputAnchorPeersUpdate \ -> INFO 006 Writing anchor peer update + res=0 + set +x
As you can see, our default network will have 2 organizations "Org1" and "Org2" with 1 channel "mychannel".
⇒ "byfn.sh up" - Start Up BYFN Network
⇐ "first-network" - Building Your First Network
2020-05-05, 1005🔥, 0💬
Popular Posts:
How to access Request body from "context.Request.Body" object in Azure API Policy? Request body is t...
How to use the "set-body" Policy Statement for an Azure API service operation? The "set-body" Policy...
How To Break a File Path Name into Parts in PHP? If you have a file name, and want to get different ...
What is test testing area for? The testing area is provided to allow visitors to post testing commen...
How to create the Hello-3.0.epub package? I have all required files to create Hello-3.0.epub. To cre...