mirror of
https://github.com/corda/corda.git
synced 2025-01-03 03:36:48 +00:00
Fix Raft notary demo post name refactoring
This commit is contained in:
parent
b597f05bd4
commit
22b4b31979
@ -41,7 +41,7 @@ object ServiceIdentityGenerator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
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 serviceId = args[1]
|
||||||
val serviceName = args[2]
|
val serviceName = args[2]
|
||||||
val quorumSize = args.getOrNull(3)?.toInt() ?: 1
|
val quorumSize = args.getOrNull(3)?.toInt() ?: 1
|
||||||
|
@ -69,7 +69,9 @@ publishing {
|
|||||||
task generateNotaryIdentity(type: JavaExec) {
|
task generateNotaryIdentity(type: JavaExec) {
|
||||||
classpath = sourceSets.main.runtimeClasspath
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
main = "net.corda.node.utilities.ServiceIdentityGeneratorKt"
|
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]
|
args = [nodeDirs, notaryType, notaryName]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ private class NotaryDemoClientApi(val rpc: CordaRPCOps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private val counterpartyNode by lazy {
|
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 {
|
private companion object {
|
||||||
|
Loading…
Reference in New Issue
Block a user