-
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.
Signed-off-by: SamYuan1990 <[email protected]>
- Loading branch information
1 parent
dc97cff
commit 16c2492
Showing
8 changed files
with
76 additions
and
48 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 |
---|---|---|
|
@@ -41,7 +41,7 @@ Clone this repo and run `go build` at root dir. This is a go module project so y | |
Modify `config.json` according to your network. This is a sample: | ||
```json | ||
{ | ||
"peer_addr": "peer0.org1.example.com:7051", | ||
"peer_addrs": ["peer0.org1.example.com:7051","peer0.org2.example.com:9051"], | ||
"orderer_addr": "orderer.example.com:7050", | ||
"channel": "mychannel", | ||
"chaincode": "mycc", | ||
|
@@ -50,13 +50,13 @@ Modify `config.json` according to your network. This is a sample: | |
"mspid": "Org1MSP", | ||
"private_key": "wallet/priv.key", | ||
"sign_cert": "wallet/sign.crt", | ||
"tls_ca_certs": ["wallet/pca.crt","wallet/oca.crt"], | ||
"tls_ca_certs": ["wallet/pca1.crt","wallet/pca2.crt","wallet/oca.crt"], | ||
"num_of_conn": 20, | ||
"client_per_conn": 40 | ||
} | ||
``` | ||
|
||
`peer_addr`: peer address in IP:Port format. It does not support sending traffic to multiple peers, yet. You may need to add peer name, i.e. `peer0.org1.example.com` to your `/etc/hosts` | ||
`peer_addrs`: peer address in IP:Port format. You may need to add peer name, i.e. `peer0.org1.example.com,peer0.org2.example.com` to your `/etc/hosts` | ||
|
||
`orderer_addr`: orderer address in IP:Port format. It does not support sending traffic to multiple orderers, yet. You may need to add orderer name, i.e. `orderer.example.com` to your `/etc/hosts` | ||
|
||
|
@@ -74,7 +74,7 @@ crypto-config/peerOrganizations/org1.example.com/users/[email protected]/ms | |
crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts/[email protected] | ||
``` | ||
|
||
`tls_ca_certs`: this contains TLS CA certificates of peer and orderer. If tls is disabled, leave this blank. Otherwise, it can be `crypto-config/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pem` from peer and `crypto-config/ordererOrganizations/example.com/tlsca/tlsca.example.com-cert.pem` from orderer | ||
`tls_ca_certs`: this contains TLS CA certificates of peer and orderer. If tls is disabled, leave this blank. Otherwise, it can be [peer0 tls, peer1 tls ... ordere rtls]. `crypto-config/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pem` from peer and `crypto-config/ordererOrganizations/example.com/tlsca/tlsca.example.com-cert.pem` from orderer | ||
|
||
`channel`: channel name | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"peer_addrs": ["peer0.org1.example.com:7051","peer0.org2.example.com:9051"], | ||
"orderer_addr": "orderer.example.com:7050", | ||
"channel": "mychannel", | ||
"chaincode": "mycc", | ||
"version": "", | ||
"args": ["query","a"], | ||
"mspid": "Org1MSP", | ||
"private_key": "./crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/keystore/4d75bedcf454389483dfe0efbf12602b64d8c0e2903451c688b1d5d9ba38e655_sk", | ||
"sign_cert": "./crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts/[email protected]", | ||
"tls_ca_certs": ["./crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem", "./crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/tlscacerts/tlsca.org2.example.com-cert.pem","./crypto-config/ordererOrganizations/example.com/msp/tlscacerts/tlsca.example.com-cert.pem"], | ||
"num_of_conn": 10, | ||
"client_per_conn": 10 | ||
} |
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
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