mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 07:25:10 +00:00
* Remove Org3cli from test-network FAB-18381 Signed-off-by: Will Lahti <wtlahti@us.ibm.com> * Remove configtx.yaml anchor peers from test-network These values were only used by configtxgen's --outputAnchorPeerUpdate function and should not be set in a channel genesis block This is because a peer cannot be an anchor peer for a channel until it has joined that channel and it can't join a channel until the genesis block has been created. FAB-18381 Signed-off-by: Will Lahti <wtlahti@us.ibm.com> |
||
|---|---|---|
| .. | ||
| docker | ||
| fabric-ca | ||
| .env | ||
| addOrg3.sh | ||
| ccp-generate.sh | ||
| ccp-template.json | ||
| ccp-template.yaml | ||
| configtx.yaml | ||
| org3-crypto.yaml | ||
| README.md | ||
Adding Org3 to the test network
You can use the addOrg3.sh script to add another organization to the Fabric test network. The addOrg3.sh script generates the Org3 crypto material, creates an Org3 organization definition, and adds Org3 to a channel on the test network.
You first need to run ./network.sh up createChannel in the test-network directory before you can run the addOrg3.sh script.
./network.sh up createChannel
cd addOrg3
./addOrg3.sh up
If you used network.sh to create a channel other than the default mychannel, you need pass that name to the addorg3.sh script.
./network.sh up createChannel -c channel1
cd addOrg3
./addOrg3.sh up -c channel1
You can also re-run the addOrg3.sh script to add Org3 to additional channels.
cd ..
./network.sh createChannel -c channel2
cd addOrg3
./addOrg3.sh up -c channel2
For more information, use ./addOrg3.sh -h to see the addOrg3.sh help text.