CORDA-267: Set a default name of Notary for the first node. (#417)

This commit is contained in:
Chris Rankin 2017-03-23 16:28:05 +00:00 committed by GitHub
parent 660e570b48
commit e1bfa6c655

View File

@ -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