Tools, FAQ, Tutorials:
"configtxgen" Command - Build *MSPanchors.tx
How to run "configtxgen" command to build a transaction message to define the anchor peer in each organization in BYFN (Build Your First Network)?
✍: FYIcenter.com
You can follow this tutorial to run "configtxgen" command to build a transaction message to define the anchor peer in each organization in BYFN.
The "configtxgen" command file is located in the ../bin directory. It takes the configtx.yaml file as the input with the help of FABRIC_CFG_PATH environment variable:
$ cd hyperledger-binaries/fabric-samples/first-network $ export FABRIC_CFG_PATH=./ $ mkdir ./channel-artifacts $ ../bin/configtxgen -profile TwoOrgsChannel -channelID mychannel -asOrg Org1MSP \ -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx ... ...[common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 005 Generating anchor peer update ...[common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 006 Writing anchor peer update $ ../bin/configtxgen -profile TwoOrgsChannel -channelID mychannel -asOrg Org2MSP \ -outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx ... ...[common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 005 Generating anchor peer update ...[common.tools.configtxgen] doOutputAnchorPeersUpdate -> INFO 006 Writing anchor peer update
Transaction messages for both organizations are generated in the ./channel-artifacts sub-directory and named as "Org1MSPanchors.tx" and "Org2MSPanchors":
$ ls -l ./channel-artifacts -rw-r--r-- 1 fyicenter 12988 Apr 1 01:26 Org1MSPanchors.tx -rw-r--r-- 1 fyicenter 12988 Apr 1 01:26 Org2MSPanchors.tx
⇒ BYFN docker-compose-cli.yaml Configuration File
⇐ "configtxgen" Command - Build channel.tx
2020-10-20, 949🔥, 0💬
Popular Posts:
How To Pad an Array with the Same Value Multiple Times in PHP? If you want to add the same value mul...
How to Build my "sleep" Docker image from the Alpine image? I want the container to sleep for 10 hou...
Where to find tutorials on PHP language? I want to know how to learn PHP. Here is a large collection...
Where to find tutorials on EPUB file format? I want to know how to create EPUB books. Here is a larg...
How To Read a File in Binary Mode in PHP? If you have a file that stores binary data, like an execut...