mirror of
https://github.com/corda/corda.git
synced 2024-12-19 21:17:58 +00:00
Fix Raft notary demo post name refactoring
This commit is contained in:
parent
c8af48ebd9
commit
4e86443cac
@ -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
|
||||
|
@ -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]
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user