From e1bfa6c655c7e3a2be9c27c84f1168daf683ae1a Mon Sep 17 00:00:00 2001 From: Chris Rankin Date: Thu, 23 Mar 2017 16:28:05 +0000 Subject: [PATCH] CORDA-267: Set a default name of Notary for the first node. (#417) --- .../src/main/kotlin/net/corda/demobench/views/NodeTabView.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/demobench/src/main/kotlin/net/corda/demobench/views/NodeTabView.kt b/tools/demobench/src/main/kotlin/net/corda/demobench/views/NodeTabView.kt index 900bd2f6d4..2017920091 100644 --- a/tools/demobench/src/main/kotlin/net/corda/demobench/views/NodeTabView.kt +++ b/tools/demobench/src/main/kotlin/net/corda/demobench/views/NodeTabView.kt @@ -22,7 +22,7 @@ class NodeTabView : Fragment() { private companion object : Component() { const val textWidth = 200.0 const val numberWidth = 100.0 - const val maxNameLength = 10 + const val maxNameLength = 15 val integerFormat = DecimalFormat() val notNumber = "[^\\d]".toRegex() @@ -115,6 +115,7 @@ class NodeTabView : Fragment() { root.add(nodeConfigView) root.add(nodeTerminalView) + model.legalName.value = if (nodeController.hasNetworkMap()) "" else "Notary" model.p2pPort.value = nodeController.nextPort model.rpcPort.value = nodeController.nextPort model.webPort.value = nodeController.nextPort