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, 1106🔥, 0💬
Popular Posts:
How To Submit Values without Using a Form in PHP? If you know the values you want to submit, you can...
How to use the Atom Online Validator at w3.org? w3.org feed validation service is provided at http:/...
What is Azure API Management Developer Portal Admin? The Developer Portal Admin is an Azure Web port...
How To Pass Arrays By References? in PHP? Like normal variables, you can pass an array by reference ...
How To Submit Values without Using a Form in PHP? If you know the values you want to submit, you can...