diff --git a/fabcar/go/fabcar.go b/fabcar/go/fabcar.go index f75c6dd3..0b1ffb93 100644 --- a/fabcar/go/fabcar.go +++ b/fabcar/go/fabcar.go @@ -18,6 +18,7 @@ import ( ) func main() { + os.Setenv("DISCOVERY_AS_LOCALHOST", "true") wallet, err := gateway.NewFileSystemWallet("wallet") if err != nil { fmt.Printf("Failed to create wallet: %s\n", err) diff --git a/fabcar/startFabric.sh b/fabcar/startFabric.sh index d82b48d3..5f1452cd 100755 --- a/fabcar/startFabric.sh +++ b/fabcar/startFabric.sh @@ -109,12 +109,8 @@ Go: Start by changing into the "go" directory: cd go - Set environment variable DISCOVERY_AS_LOCALHOST to true, to indicate to ServiceDiscovery that all hostnames maps to localhost - Then, install dependencies and run the test using: go run fabcar.go - or - ./runfabcar.sh The test will invoke the sample client app which perform the following: - Import user credentials into the wallet (if they don't already exist there)