Knowee
Questions
Features
Study Tools

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 ./scripts/setOrgPeerContext.sh 1<br /> Peer channel join -ps ./channel-artifacts/mychannel.blocksource ./config/scripts/setOrgPeerContext.sh 1<br /> Peer channel merge -b ./channel-artifacts/mychannel.blocksource ./scripts/setOrgPeerContext.sh 1<br /> Peer channel join -b ./channel-artifacts/mychannel.blocksource ./set/scripts/OrgPeerContext.sh 1<br /> Peer channel merge -ps ./channel-artifacts/mychannel.block

Question

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 ./scripts/setOrgPeerContext.sh 1<br /> Peer channel join -ps ./channel-artifacts/mychannel.blocksource ./config/scripts/setOrgPeerContext.sh 1<br /> Peer channel merge -b ./channel-artifacts/mychannel.blocksource ./scripts/setOrgPeerContext.sh 1<br /> Peer channel join -b ./channel-artifacts/mychannel.blocksource ./set/scripts/OrgPeerContext.sh 1<br /> Peer channel merge -ps ./channel-artifacts/mychannel.block

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

Solution

The correct command to use in this scenario is:

source ./scripts/setOrgPeerContext.sh 1 Peer channel join -b ./channel-artifacts/mychannel.block

This command sets the context for the peer in Org1 and then joins the peer to the channel using the specified block file.

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.

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

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

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 run cli ./set/scripts/setAnchorPeer.sh 2 $CHANNEL_NAMEdocker exec cli ./scripts/setAnchorPeer.sh 2 $CHANNEL_NAMEdocker run cli ./scripts/AnchorPeer.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

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.