From 3cd9c1b3f0d6bdd5b22f5c6b571a87bbd9badf4b Mon Sep 17 00:00:00 2001 From: Tony Lawson Date: Mon, 29 Apr 2024 16:46:04 +0100 Subject: [PATCH] ES-1840: Add dynamic network config file --- config/dynamic-network-config.json | 31 ++++++++++++++++++++++++++++++ config/static-network-config.json | 4 +++- gradle.properties | 6 +++--- 3 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 config/dynamic-network-config.json diff --git a/config/dynamic-network-config.json b/config/dynamic-network-config.json new file mode 100644 index 0000000..cd23709 --- /dev/null +++ b/config/dynamic-network-config.json @@ -0,0 +1,31 @@ +[ + { + "x500Name" : "CN=MGM, OU=Test Dept, O=R3, L=London, C=GB", + "cpi" : "MGM", + "mgmNode" : "true" + }, + { + "x500Name" : "CN=Alice, OU=Test Dept, O=R3, L=London, C=GB", + "cpi" : "MyCorDapp", + "mgmNode" : "false" + }, + { + "x500Name" : "CN=Bob, OU=Test Dept, O=R3, L=London, C=GB", + "cpi" : "MyCorDapp" + }, + { + "x500Name" : "CN=Charlie, OU=Test Dept, O=R3, L=London, C=GB", + "cpi" : "MyCorDapp" + }, + { + "x500Name" : "CN=Dave, OU=Test Dept, O=R3, L=London, C=GB", + "cpi" : "MyCorDapp" + }, + { + "x500Name" : "CN=NotaryRep1, OU=Test Dept, O=R3, L=London, C=GB", + "cpi" : "NotaryServer", + "serviceX500Name": "CN=NotaryService, OU=Test Dept, O=R3, L=London, C=GB", + "flowProtocolName" : "com.r3.corda.notary.plugin.nonvalidating", + "backchainRequired" : "true" + } +] diff --git a/config/static-network-config.json b/config/static-network-config.json index b0f2519..777484b 100644 --- a/config/static-network-config.json +++ b/config/static-network-config.json @@ -18,6 +18,8 @@ { "x500Name" : "CN=NotaryRep1, OU=Test Dept, O=R3, L=London, C=GB", "cpi" : "NotaryServer", - "serviceX500Name": "CN=NotaryService, OU=Test Dept, O=R3, L=London, C=GB" + "serviceX500Name": "CN=NotaryService, OU=Test Dept, O=R3, L=London, C=GB", + "flowProtocolName" : "com.r3.corda.notary.plugin.nonvalidating", + "backchainRequired" : "true" } ] diff --git a/gradle.properties b/gradle.properties index 387815c..3333056 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,14 +2,14 @@ kotlin.code.style=official # Specify the version of the Corda-API to use. # This needs to match the version supported by the Corda Cluster the CorDapp will run on. -cordaApiVersion=5.3.0.8-beta-1711609687915 +cordaApiVersion=5.3.0.12-beta-1714370887105 # Specify the version of the Corda runtime to use. -cordaRuntimeVersion=5.3.0.0-beta-1711617024604 +cordaRuntimeVersion=5.3.0.0-beta-1714402943997 # Specify the version of the notary plugins to use. # Currently packaged as part of corda-runtime-os, so should be set to a corda-runtime-os version. -cordaNotaryPluginsVersion=5.3.0.0-beta-1711617024604 +cordaNotaryPluginsVersion=5.3.0.0-beta-1714402943997 # Specify the version of the cordapp-cpb and cordapp-cpk plugins cordaPluginsVersion=7.0.4