diff --git a/node/src/main/kotlin/net/corda/node/Corda.kt b/node/src/main/kotlin/net/corda/node/Corda.kt index 3427fb2879..ca7c9e969a 100644 --- a/node/src/main/kotlin/net/corda/node/Corda.kt +++ b/node/src/main/kotlin/net/corda/node/Corda.kt @@ -13,6 +13,7 @@ import org.slf4j.LoggerFactory import java.lang.management.ManagementFactory import java.net.InetAddress import java.nio.file.Paths +import kotlin.concurrent.thread import kotlin.system.exitProcess private var renderBasicInfoToConsole = true @@ -85,6 +86,14 @@ fun main(args: Array) { node.start() printPluginsAndServices(node) + thread { + Thread.sleep(30.seconds.toMillis()) + while (!node.networkMapRegistrationFuture.isDone) { + printBasicNodeInfo("Waiting for response from network map ...") + Thread.sleep(30.seconds.toMillis()) + } + } + node.networkMapRegistrationFuture.success { val elapsed = (System.currentTimeMillis() - startTime) / 10 / 100.0 printBasicNodeInfo("Node started up and registered in $elapsed sec")