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, 1238🔥, 0💬
Popular Posts:
What is EPUB 2.0 Metadata "dc:creator" and "dc:contributor" elements? EPUB 2.0 Metadata "dc:creator"...
What is EPUB 2.0 Metadata "dc:creator" and "dc:contributor" elements? EPUB 2.0 Metadata "dc:creator"...
How To Read the Entire File into a Single String in PHP? If you have a file, and you want to read th...
How To Break a File Path Name into Parts in PHP? If you have a file name, and want to get different ...
How to add request URL Template Parameters to my Azure API operation to make it more user friendly? ...