mirror of
https://github.com/corda/corda.git
synced 2025-02-21 01:42:24 +00:00
Driver parameter cleanup in trader demo Main.
This commit is contained in:
parent
082fec1362
commit
0ec27fe11a
@ -19,12 +19,12 @@ fun main(args: Array<String>) {
|
||||
startFlowPermission<IssuerFlow.IssuanceRequester>(),
|
||||
startFlowPermission<net.corda.traderdemo.flow.SellerFlow>())
|
||||
val demoUser = listOf(User("demo", "demo", permissions))
|
||||
driver(driverDirectory = Paths.get("build") / "trader-demo-nodes", dsl = {
|
||||
driver(driverDirectory = Paths.get("build") / "trader-demo-nodes", isDebug = true) {
|
||||
val user = User("user1", "test", permissions = setOf(startFlowPermission<IssuerFlow.IssuanceRequester>()))
|
||||
startNode("Notary", setOf(ServiceInfo(SimpleNotaryService.type)))
|
||||
startNode("Bank A", rpcUsers = demoUser)
|
||||
startNode("Bank B", rpcUsers = demoUser)
|
||||
startNode(BOC.name, rpcUsers = listOf(user))
|
||||
waitForAllNodesToFinish()
|
||||
}, isDebug = true)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user