diff --git a/tools/demobench/src/main/kotlin/net/corda/demobench/model/NodeConfig.kt b/tools/demobench/src/main/kotlin/net/corda/demobench/model/NodeConfig.kt index 0034101c98..5a3b5b8654 100644 --- a/tools/demobench/src/main/kotlin/net/corda/demobench/model/NodeConfig.kt +++ b/tools/demobench/src/main/kotlin/net/corda/demobench/model/NodeConfig.kt @@ -13,7 +13,8 @@ class NodeConfig( val webPort: Int, val h2Port: Int, val extraServices: List, - val users: List> = listOf(defaultUser) + val users: List> = listOf(defaultUser), + var networkMap: NetworkMapConfig? = null ) : NetworkMapConfig(legalName, artemisPort) { companion object { @@ -38,8 +39,6 @@ class NodeConfig( override val keyStorePassword: String = "cordacadevpass" } - var networkMap: NetworkMapConfig? = null - var state: NodeState = NodeState.STARTING val isCashIssuer: Boolean = extraServices.any { @@ -69,7 +68,7 @@ class NodeConfig( fun toText(): String = toFileConfig().root().render(renderOptions) fun moveTo(baseDir: Path) = NodeConfig( - baseDir, legalName, artemisPort, nearestCity, webPort, h2Port, extraServices, users + baseDir, legalName, artemisPort, nearestCity, webPort, h2Port, extraServices, users, networkMap ) } diff --git a/tools/demobench/src/main/kotlin/net/corda/demobench/profile/ProfileController.kt b/tools/demobench/src/main/kotlin/net/corda/demobench/profile/ProfileController.kt index 3582ca700c..5968f07e5a 100644 --- a/tools/demobench/src/main/kotlin/net/corda/demobench/profile/ProfileController.kt +++ b/tools/demobench/src/main/kotlin/net/corda/demobench/profile/ProfileController.kt @@ -104,6 +104,8 @@ class ProfileController : Controller() { if (config.hasPath("networkMapService")) { val nmap = config.getConfig("networkMapService") nodeConfig.networkMap = NetworkMapConfig(nmap.getString("legalName"), nmap.parsePort("address")) + } else { + log.info("Node '${nodeConfig.legalName}' is the network map") } return nodeConfig