-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-6423] Go SDK config reused issue
Change-Id: I89bc8a91532e8b1ebd4bb79bcf82c27bc405adeb Signed-off-by: Sandra Vrtikapa <sandra.vrtikapa@securekey.com>
- Loading branch information
Showing
7 changed files
with
279 additions
and
108 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
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,129 @@ | ||
# | ||
# Copyright SecureKey Technologies Inc. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
name: "global-trade-network" | ||
|
||
x-type: "hlfv1" | ||
x-loggingLevel: info | ||
|
||
description: "The network to be in if you want to stay in the global trade business" | ||
version: 1.0.0 | ||
|
||
client: | ||
organization: Org2 | ||
|
||
logging: | ||
level: info | ||
|
||
# Global configuration for peer, event service and orderer timeouts | ||
peer: | ||
timeout: | ||
connection: 3s | ||
queryResponse: 20s | ||
executeTxResponse: 30s | ||
eventService: | ||
timeout: | ||
connection: 3s | ||
registrationResponse: 3s | ||
orderer: | ||
timeout: | ||
connection: 3s | ||
response: 5s | ||
|
||
cryptoconfig: | ||
path: $GOPATH/src/github.com/hyperledger/fabric-sdk-go/test/fixtures/channel/crypto-config | ||
|
||
credentialStore: | ||
path: "/tmp/hfc-kvs" | ||
|
||
cryptoStore: | ||
# Specific to the underlying KeyValueStore that backs the crypto key store. | ||
path: /tmp/msp | ||
|
||
# BCCSP config for the client. Used by GO SDK. | ||
BCCSP: | ||
security: | ||
enabled: true | ||
default: | ||
provider: "SW" | ||
hashAlgorithm: "SHA2" | ||
softVerify: true | ||
ephemeral: false | ||
level: 256 | ||
|
||
channels: | ||
|
||
orgchannel: | ||
|
||
orderers: | ||
- orderer.example.com | ||
|
||
peers: | ||
peer0.org2.example.com: | ||
endorsingPeer: true | ||
chaincodeQuery: true | ||
ledgerQuery: true | ||
eventSource: true | ||
|
||
organizations: | ||
|
||
Org2: | ||
mspid: Org2MSP | ||
|
||
# Needed to load users crypto keys and certs for this org (absolute path or relative to global crypto path, DEV mode) | ||
cryptoPath: peerOrganizations/org2.example.com/users/{userName}@org2.example.com/msp | ||
|
||
peers: | ||
- peer0.org2.example.com | ||
|
||
certificateAuthorities: | ||
- ca-org2 | ||
|
||
ordererorg: | ||
mspID: "OrdererOrg" | ||
|
||
# Needed to load users crypto keys and certs for this org (absolute path or relative to global crypto path, DEV mode) | ||
cryptoPath: ordererOrganizations/example.com/users/{userName}@example.com/msp | ||
|
||
|
||
orderers: | ||
orderer.example.com: | ||
url: grpcs://orderer.example.com:7050 | ||
|
||
grpcOptions: | ||
ssl-target-name-override: orderer.example.com | ||
grpc-max-send-message-length: 15 | ||
|
||
tlsCACerts: | ||
path: $GOPATH/src/github.com/hyperledger/fabric-sdk-go/test/fixtures/channel/crypto-config/ordererOrganizations/example.com/tlsca/tlsca.example.com-cert.pem | ||
|
||
peers: | ||
peer0.org2.example.com: | ||
url: grpcs://peer0.org2.example.com:7051 | ||
eventUrl: grpcs://peer0.org2.example.com:7053 | ||
grpcOptions: | ||
ssl-target-name-override: peer0.org2.example.com | ||
tlsCACerts: | ||
path: $GOPATH/src/github.com/hyperledger/fabric-sdk-go/test/fixtures/channel/crypto-config/peerOrganizations/org2.example.com/tlsca/tlsca.org2.example.com-cert.pem | ||
|
||
certificateAuthorities: | ||
ca-org2: | ||
url: https://ca_peerOrg2:7054 | ||
|
||
httpOptions: | ||
verify: true | ||
|
||
tlsCACerts: | ||
path: $GOPATH/src/github.com/hyperledger/fabric-sdk-go/test/fixtures/tls/fabricca/certs/ca_root.pem | ||
client: | ||
keyfile: $GOPATH/src/github.com/hyperledger/fabric-sdk-go/test/fixtures/tls/fabricca/certs/client/client_fabric_client-key.pem | ||
certfile: $GOPATH/src/github.com/hyperledger/fabric-sdk-go/test/fixtures/tls/fabricca/certs/client/client_fabric_client.pem | ||
|
||
registrar: | ||
enrollId: admin | ||
enrollSecret: adminpw | ||
|
||
caName: ca-org2 |
Oops, something went wrong.