forked from hyperledger/fabric-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FABG-936 Support minimal ccp for fabric samples (hyperledger#74)
The Fabcar sample in fabric-samples contains a minimal CCP definition with just a single gateway peer entry and no channel or orderer information. It is also written to be run on a single dev system whereby hostnames need to be translated to localhost. This commit adds support to the gateway package for: - automatic creation of channel definition on invocation of `getNetwork(channelName)` - support for translation of discovered peers/orderers to localhost via environment variable (DISCOVERY_AS_LOCALHOST) Both of these align the behaviour with the Node and Java SDKs and are required to implement the Fabcar sample. Signed-off-by: andrew-coleman <[email protected]>
- Loading branch information
1 parent
5fe41b9
commit 219a09a
Showing
4 changed files
with
303 additions
and
123 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
Oops, something went wrong.