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
⇑ Hyperledger Fabric Sample Networks
⇑⇑ Hyperledger Tutorials
2020-05-05, 880👍, 0💬
Popular Posts:
How to use the API operation 2017 version setting "Rewrite URL template"? The API operation setting ...
How to add request URL Template Parameters to my Azure API operation 2017 version to make it more us...
Where to see some Examples of Invalid JSON Values? Here are some Examples of Invalid JSON Values: 1....
How To Control Vertical Alignment? By default, text in all table cells are aligned to the top vertic...
How to use the urllib.request.Request object to build more complex HTTP request? The urllib.request....