From 90a24588bc6c236950e25c7adf5b597b8feccf87 Mon Sep 17 00:00:00 2001 From: Clinton Alexander Date: Mon, 6 Jun 2016 09:20:04 +0100 Subject: [PATCH] Added TODOs and replaced default path with an exception. --- src/main/kotlin/com/r3corda/demos/IRSDemo.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/com/r3corda/demos/IRSDemo.kt b/src/main/kotlin/com/r3corda/demos/IRSDemo.kt index 49300dbb4a..10df92ac2f 100644 --- a/src/main/kotlin/com/r3corda/demos/IRSDemo.kt +++ b/src/main/kotlin/com/r3corda/demos/IRSDemo.kt @@ -98,9 +98,7 @@ class DemoNode(messagingService: MessagingService, dir: Path, p2pAddr: HostAndPo return messagingService } - override fun startMessagingService() { - - } + override fun startMessagingService() = Unit } fun main(args: Array) { @@ -276,7 +274,6 @@ private fun runNode(nodeParams : NodeParams, useInMemoryMessaging: Boolean) : Un } catch(e: InterruptedException) { node.stop() } - exitProcess(0) } private fun runUploadRates() { @@ -467,6 +464,8 @@ private fun startDemoNode(params : NodeParams) : Node { // TODO: This should all be replaced by the identity service being updated // as the network map changes. val identityFile = params.tradeWithIdentities[0] + // Since in integration tests there are only two nodes with IDs 0 and 1, this hack will work + // TODO: Get Artemis working with two nodes in the same process or come up with a better solution val handle = InMemoryMessagingNetwork.Handle(1 - params.id, "Other Node") val peerId = nodeInfo(handle, identityFile) node.services.identityService.registerIdentity(peerId.identity)