-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add version of chaincode to config params
Signed-off-by: Jay Guo <[email protected]>
- Loading branch information
Showing
4 changed files
with
7 additions
and
2 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 |
---|---|---|
|
@@ -45,6 +45,7 @@ Modify `config.json` according to your network. This is a sample: | |
"orderer_addr": "orderer.example.com:7050", | ||
"channel": "mychannel", | ||
"chaincode": "mycc", | ||
"version": "", | ||
"args": ["put", "key", "value"], | ||
"mspid": "Org1MSP", | ||
"private_key": "wallet/priv.key", | ||
|
@@ -79,6 +80,8 @@ crypto-config/peerOrganizations/org1.example.com/users/[email protected]/ms | |
|
||
`chaincode`: chaincode to invoke. There is an example chaincode in `chaincodes/sample.go`, which simply puts `key:value`. This is closely related to `args` parameter. | ||
|
||
`version`: the version of chaincode. This is left to empty by default. | ||
|
||
`args`: arguments to send with invocation, depending on your chaincode implementation. The chaincode used by this sample can be found in `chaincodes/sample.go` | ||
|
||
`num_of_conn`: number of gRPC connection established between client/peer, client/orderer. If you think client has not put enough pressure on Fabric, increase this. | ||
|
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
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
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