-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FABN-864 Discovery support in fabric-network api
Enhance the fabric-network API to use service discovery by default when initializing the channel. Add option to disable it and option to translate discovered endpoints to localhost Change-Id: I9a81b87751b40dd125a9989f831760950d00c826 Signed-off-by: andrew-coleman <[email protected]>
- Loading branch information
1 parent
52c82cc
commit 4f65a2e
Showing
12 changed files
with
365 additions
and
28 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name":"global-trade-network", | ||
"description":"The network to be in if you want to stay in the global trade business", | ||
"version":"1.0", | ||
"client":{ | ||
"organization":"Org1" | ||
}, | ||
"channels":{ | ||
"mychannel":{ | ||
"peers":{ | ||
"peer0.org1.example.com":{ | ||
} | ||
} | ||
} | ||
}, | ||
"organizations":{ | ||
"Org1":{ | ||
"mspid":"Org1MSP", | ||
"peers":[ | ||
"peer0.org1.example.com" | ||
] | ||
} | ||
}, | ||
"peers":{ | ||
"peer0.org1.example.com":{ | ||
"url":"grpcs://localhost:7051", | ||
"grpcOptions":{ | ||
"ssl-target-name-override":"peer0.org1.example.com" | ||
}, | ||
"tlsCACerts":{ | ||
"path":"test/fixtures/channel/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tlscacerts/org1.example.com-cert.pem" | ||
} | ||
} | ||
} | ||
} |
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,35 @@ | ||
{ | ||
"test-network": { | ||
"orderer": { | ||
"url": "grpcs://localhost:7050", | ||
"server-hostname": "orderer.example.com", | ||
"tls_cacerts": "../../fixtures/channel/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tlscacerts/example.com-cert.pem" | ||
}, | ||
"org1": { | ||
"name": "peerOrg1", | ||
"mspid": "Org1MSP", | ||
"ca": { | ||
"url": "https://localhost:7054", | ||
"name": "ca-org1" | ||
}, | ||
"peer1": { | ||
"requests": "grpcs://localhost:7051", | ||
"server-hostname": "peer0.org1.example.com", | ||
"tls_cacerts": "../../fixtures/channel/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tlscacerts/org1.example.com-cert.pem" | ||
} | ||
}, | ||
"org2": { | ||
"name": "peerOrg2", | ||
"mspid": "Org2MSP", | ||
"ca": { | ||
"url": "https://localhost:8054", | ||
"name": "ca-org2" | ||
}, | ||
"peer1": { | ||
"requests": "grpcs://localhost:8051", | ||
"server-hostname": "peer0.org2.example.com", | ||
"tls_cacerts": "../../fixtures/channel/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tlscacerts/org2.example.com-cert.pem" | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.