-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cherry pick test network doc chaincode deployment fix
Signed-off-by: Nikhil Gupta <[email protected]>
- Loading branch information
Showing
1 changed file
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -247,15 +247,14 @@ chaincode is ready to be used. | |
After you have used the `network.sh` to create a channel, you can start a | ||
chaincode on the channel using the following command: | ||
``` | ||
./network.sh deployCC | ||
./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-go -ccl go | ||
``` | ||
The `deployCC` subcommand will install the **asset-transfer (basic)** chaincode on | ||
``peer0.org1.example.com`` and ``peer0.org2.example.com`` and then deploy | ||
the chaincode on the channel specified using the channel flag (or `mychannel` | ||
if no channel is specified). If you are deploying a chaincode for the first | ||
time, the script will install the chaincode dependencies. By default, The script | ||
installs the Go version of the asset-transfer (basic) chaincode. However, you can use the | ||
language flag, `-l`, to install the typescript or javascript versions of the chaincode. | ||
time, the script will install the chaincode dependencies. You can use the | ||
language flag, `-l`, to install the Go, typescript or javascript versions of the chaincode. | ||
You can find the asset-transfer (basic) chaincode in the `asset-transfer-basic` folder of the `fabric-samples` | ||
directory. This folder contains sample chaincode that are provided as examples and | ||
used by tutorials to highlight Fabric features. | ||
|
@@ -293,7 +292,7 @@ export CORE_PEER_ADDRESS=localhost:7051 | |
The `CORE_PEER_TLS_ROOTCERT_FILE` and `CORE_PEER_MSPCONFIGPATH` environment | ||
variables point to the Org1 crypto material in the `organizations` folder. | ||
|
||
If you used `./network.sh deployCC` to install and start the asset-transfer (basic) chaincode, you can invoke the `InitLedger` function of the (Go) chaincode to put an initial list of assets on the ledger (if using typescript or javascript `./network.sh deployCC -ccl javascript` for example, you will invoke the `InitLedger` function of the respective chaincodes). | ||
If you used `./network.sh deployCC -ccl go` to install and start the asset-transfer (basic) chaincode, you can invoke the `InitLedger` function of the (Go) chaincode to put an initial list of assets on the ledger (if using typescript or javascript `./network.sh deployCC -ccl javascript` for example, you will invoke the `InitLedger` function of the respective chaincodes). | ||
|
||
Run the following command to initialize the ledger with assets: | ||
``` | ||
|
@@ -488,12 +487,12 @@ organizations/peerOrganizations/org1.example.com/users/[email protected]/ | |
├── IssuerPublicKey | ||
├── IssuerRevocationPublicKey | ||
├── cacerts | ||
│ └── localhost-7054-ca-org1.pem | ||
│ └── localhost-7054-ca-org1.pem | ||
├── config.yaml | ||
├── keystore | ||
│ └── 58e81e6f1ee8930df46841bf88c22a08ae53c1332319854608539ee78ed2fd65_sk | ||
│ └── 58e81e6f1ee8930df46841bf88c22a08ae53c1332319854608539ee78ed2fd65_sk | ||
├── signcerts | ||
│ └── cert.pem | ||
│ └── cert.pem | ||
└── user | ||
``` | ||
You can find the certificate of the admin user in the `signcerts` folder and the | ||
|
@@ -661,4 +660,4 @@ channel on [Hyperledger Rocket Chat](https://chat.hyperledger.org/home) or on | |
[StackOverflow](https://stackoverflow.com/questions/tagged/hyperledger-fabric). | ||
|
||
<!--- Licensed under Creative Commons Attribution 4.0 International License | ||
https://creativecommons.org/licenses/by/4.0/ --> | ||
https://creativecommons.org/licenses/by/4.0/ --> |