Fix Raft notary demo post name refactoring

This commit is contained in:
Andrius Dagys 2017-04-25 16:06:24 +01:00
parent c8af48ebd9
commit 4e86443cac
3 changed files with 5 additions and 3 deletions

View File

@ -41,7 +41,7 @@ object ServiceIdentityGenerator {
}
fun main(args: Array<String>) {
val dirs = args[0].split(",").map { Paths.get(it) }
val dirs = args[0].split("|").map { Paths.get(it) }
val serviceId = args[1]
val serviceName = args[2]
val quorumSize = args.getOrNull(3)?.toInt() ?: 1

View File

@ -69,7 +69,9 @@ publishing {
task generateNotaryIdentity(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = "net.corda.node.utilities.ServiceIdentityGeneratorKt"
def nodeDirs = ["$deployTo/Notary1", "$deployTo/Notary2", "$deployTo/Notary3"].join(",")
def nodeDirs = ["$deployTo/CN=Notary 1,O=R3,OU=corda,L=London,C=UK",
"$deployTo/CN=Notary 2,O=R3,OU=corda,L=London,C=UK",
"$deployTo/CN=Notary 3,O=R3,OU=corda,L=London,C=UK"].join("|")
args = [nodeDirs, notaryType, notaryName]
}

View File

@ -34,7 +34,7 @@ private class NotaryDemoClientApi(val rpc: CordaRPCOps) {
}
private val counterpartyNode by lazy {
rpc.networkMapUpdates().first.first { it.legalIdentity.name == BOB.name }
rpc.networkMapUpdates().first.first { it.legalIdentity.name == "CN=Counterparty,O=R3,OU=corda,L=London,C=UK" }
}
private companion object {