diff --git a/src/dlt/gateway/.gitignore b/src/dlt/gateway/.gitignore index 1de6c650e4e3891fba0a81d585634f635e03a5c4..9ecdb254cd217f06171ac30934a34f898a7d77dc 100644 --- a/src/dlt/gateway/.gitignore +++ b/src/dlt/gateway/.gitignore @@ -87,4 +87,4 @@ gradle-app.setting .gradletasknamecache local.properties -wallet/ \ No newline at end of file +wallet*/ \ No newline at end of file diff --git a/src/dlt/gateway/src/main/kotlin/grpc/FabricServer.kt b/src/dlt/gateway/src/main/kotlin/grpc/FabricServer.kt index 0ff89ae3ed4693912959ca4ad205d2daa9b475fb..9b4e1f4dc38d80c22847ae213053119b301bdf3d 100644 --- a/src/dlt/gateway/src/main/kotlin/grpc/FabricServer.kt +++ b/src/dlt/gateway/src/main/kotlin/grpc/FabricServer.kt @@ -48,8 +48,9 @@ class FabricServer(val port: Int) { private val server: Server init { - val cfg = Config.DltConfig.newBuilder().setWallet("wallet").setConnectionFile("config/connection-org1.json") - .setUser("appUser" + Random.nextUInt()) + val id = Random.nextUInt() + val cfg = Config.DltConfig.newBuilder().setWallet("wallet$id").setConnectionFile("config/connection-org1.json") + .setUser("appUser$id") .setChannel("dlt") .setContract("basic").setCaCertFile("config/ca.org1.example.com-cert.pem").setCaUrl("https://teraflow.nlehd.de:7054") .setCaAdmin("admin").setCaAdminSecret("adminpw").setMsp("Org1MSP").setAffiliation("org1.department1")