mirror of
https://github.com/corda/corda.git
synced 2025-06-15 21:58:17 +00:00
Removed the network map service type as it's no longer needed.
The absence or presence of the networkMapService config is what determines if a node is the network map or not.
This commit is contained in:
@ -3,8 +3,6 @@ package net.corda.demobench.model
|
||||
import com.typesafe.config.Config
|
||||
import net.corda.core.identity.CordaX500Name
|
||||
import net.corda.core.utilities.NetworkHostAndPort
|
||||
import net.corda.nodeapi.internal.ServiceInfo
|
||||
import net.corda.nodeapi.internal.ServiceType
|
||||
import tornadofx.*
|
||||
import java.io.IOException
|
||||
import java.nio.file.Files
|
||||
@ -54,7 +52,7 @@ class InstallFactory : Controller() {
|
||||
}
|
||||
|
||||
private fun Config.parseExtraServices(path: String): MutableList<String> {
|
||||
val services = serviceController.services.values.toSortedSet() + ServiceInfo(ServiceType.networkMap).toString()
|
||||
val services = serviceController.services.values.toSortedSet()
|
||||
return this.getStringList(path)
|
||||
.filter { !it.isNullOrEmpty() }
|
||||
.map { svc ->
|
||||
|
@ -3,8 +3,6 @@ package net.corda.demobench.model
|
||||
import net.corda.core.identity.CordaX500Name
|
||||
import net.corda.demobench.plugin.PluginController
|
||||
import net.corda.demobench.pty.R3Pty
|
||||
import net.corda.nodeapi.internal.ServiceInfo
|
||||
import net.corda.nodeapi.internal.ServiceType
|
||||
import tornadofx.*
|
||||
import java.io.IOException
|
||||
import java.lang.management.ManagementFactory
|
||||
@ -100,7 +98,6 @@ class NodeController(check: atRuntime = ::checkExists) : Controller() {
|
||||
if (hasNetworkMap()) {
|
||||
config.networkMap = networkMapConfig
|
||||
} else {
|
||||
config.extraServices.add(ServiceInfo(ServiceType.networkMap).toString())
|
||||
networkMapConfig = config
|
||||
log.info("Network map provided by: ${config.legalName}")
|
||||
}
|
||||
|
Reference in New Issue
Block a user