Commit f06ebeb3 authored by Konstantin Munichev's avatar Konstantin Munichev
Browse files

Use randomized wallet names

parent 90e5ecb0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -87,4 +87,4 @@ gradle-app.setting
.gradletasknamecache

local.properties
wallet/
 No newline at end of file
wallet*/
 No newline at end of file
+3 −2
Original line number Diff line number Diff line
@@ -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")