Knowee
Questions
Features
Study Tools

A user wants to create a channel in Hyperledger Terminal for providing completely separate communication mechanisms between two organizations, Org1 and Org2. He has set up the config path by exporting the required variables. He is now required to create the System Genesis Block and Channel Genesis block.Which of the following Docker commands can he use in this scenario?configtxgen -export -profile TwoOrgsApplicationGenesis -artifacts-outputBlock ./channel-artifacts/${CHANNEL_NAME}.block -channelIDconfigtxgen -p TwoOrgsApplicationGenesis -o ./channel-artifact/${CHANNEL_NAME}.block -channelID $CHANNEL_NAMEconfigtxgen -e -p TwoOrgsApplicationGenesis -getoutputBlock ./channel-artifact/${CHANNEL_ID}.block $CHANNEL_NAMEconfigtxgen -profile TwoOrgsApplicationGenesis -outputBlock./channel-artifact/${CHANNEL_NAME}.block -channelID $CHANNEL_NAME

Question

A user wants to create a channel in Hyperledger Terminal for providing completely separate communication mechanisms between two organizations, Org1 and Org2. He has set up the config path by exporting the required variables. He is now required to create the System Genesis Block and Channel Genesis block.Which of the following Docker commands can he use in this scenario?configtxgen -export -profile TwoOrgsApplicationGenesis -artifacts-outputBlock ./channel-artifacts/CHANNELNAME.blockchannelIDconfigtxgenpTwoOrgsApplicationGenesiso./channelartifact/{CHANNEL_NAME}.block -channelIDconfigtxgen -p TwoOrgsApplicationGenesis -o ./channel-artifact/{CHANNEL_NAME}.block -channelID CHANNELNAMEconfigtxgenepTwoOrgsApplicationGenesisgetoutputBlock./channelartifact/CHANNEL_NAMEconfigtxgen -e -p TwoOrgsApplicationGenesis -getoutputBlock ./channel-artifact/{CHANNEL_ID}.block CHANNELNAMEconfigtxgenprofileTwoOrgsApplicationGenesisoutputBlock./channelartifact/CHANNEL_NAMEconfigtxgen -profile TwoOrgsApplicationGenesis -outputBlock./channel-artifact/{CHANNEL_NAME}.block -channelID $CHANNEL_NAME

...expand
🧐 Not the exact question you are looking for?Go ask a question

Solution

The correct Docker command to use in this scenario is:

configtxgen -profile TwoOrgsApplicationGenesis -outputBlock ./channel-artifact/CHANNELNAME.blockchannelID{CHANNEL_NAME}.block -channelID CHANNEL_NAME

This command will generate the Channel Genesis block using the TwoOrgsApplicationGenesis profile. The outputBlock flag specifies the location and name of the output block file, and the channelID flag specifies the name of the channel.

This problem has been solved

Similar Questions

A user has created a channel in Hyperledger Terminal between two organizations, Org1 and Org2. Now he wants to merge the organisational peer Org1 into the channel.Which of the following commands can be used here?source ./config/scripts/setOrgPeerContext.sh 1<br /> Peer channel merge -b ./channel-artifacts/mychannel.blocksource ./set/scripts/OrgPeerContext.sh 1<br /> Peer channel merge -ps ./channel-artifacts/mychannel.blocksource ./scripts/setOrgPeerContext.sh 1<br /> Peer channel join -ps ./channel-artifacts/mychannel.blocksource ./scripts/setOrgPeerContext.sh 1<br /> Peer channel join -b ./channel-artifacts/mychannel.block

While creating a channel in Hyperledger fabric, which of the following Docker commands will you use for updating the anchor peer for the Org2 organization?docker exec cli ./scripts/setAnchorPeer.sh 2 $CHANNEL_NAMEdocker run cli ./scripts/AnchorPeer.sh 2 $CHANNEL_NAMEdocker run cli ./set/scripts/setAnchorPeer.sh 2 $CHANNEL_NAMEdocker exec cli ./set/scripts/AnchorPeer.sh 2 $CHANNEL_NAME

A user created a Hyperledger application named Product_Fabric and set up the network for it. He now wants to create a channel named “productChannel” for it.What is the command that he can use to do so?./network.sh createChannel productChannel./network.sh create Channel productChannelThe Hyperledger always uses the default name, and the user cannot change it./network.sh Channel productChannel

A user created a Hyperledger application named Product_Fabric and set up the network for it. He now wants to create a channel named “productChannel” for it.What is the command that he can use to do so?./network.sh create Channel productChannel./network.sh createChannel productChannel./network.sh Channel productChannelThe Hyperledger always uses the default name, and the user cannot change it

A user set up the network and created the channel for an Hyperledger application named "Sales_Fabric". Then he writes the required chaincode. After writing the chaincode, he needs to deploy it.Which of the following commands can he use for it?Consider that the chaincode name is sac, he is using GoLang, and the init function is InitSales../network.sh deployCC -ccname sac -ccp ../chaincode -ccl go -cci InitSales./network.sh deployCC -ccname sac -ccp --chaincode -language go -cci InitSales./network.sh deploy CC sac -ccl go -ccp ../chaincode -cci InitSales./network.sh deployCC -ccn sac -ccl go -ccp ../chaincode -cci InitSales

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.