Skip to content
Snippets Groups Projects
Commit f06ebeb3 authored by Konstantin Munichev's avatar Konstantin Munichev
Browse files

Use randomized wallet names

parent 90e5ecb0
No related branches found
No related tags found
2 merge requests!54Release 2.0.0,!16DLT component (and related) improvements
...@@ -87,4 +87,4 @@ gradle-app.setting ...@@ -87,4 +87,4 @@ gradle-app.setting
.gradletasknamecache .gradletasknamecache
local.properties local.properties
wallet/ wallet*/
\ No newline at end of file \ No newline at end of file
...@@ -48,8 +48,9 @@ class FabricServer(val port: Int) { ...@@ -48,8 +48,9 @@ class FabricServer(val port: Int) {
private val server: Server private val server: Server
init { init {
val cfg = Config.DltConfig.newBuilder().setWallet("wallet").setConnectionFile("config/connection-org1.json") val id = Random.nextUInt()
.setUser("appUser" + Random.nextUInt()) val cfg = Config.DltConfig.newBuilder().setWallet("wallet$id").setConnectionFile("config/connection-org1.json")
.setUser("appUser$id")
.setChannel("dlt") .setChannel("dlt")
.setContract("basic").setCaCertFile("config/ca.org1.example.com-cert.pem").setCaUrl("https://teraflow.nlehd.de:7054") .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") .setCaAdmin("admin").setCaAdminSecret("adminpw").setMsp("Org1MSP").setAffiliation("org1.department1")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment