Simm demo fix (#122)

* Update main to match nodes in deployNodes configuration (no Bank C).

* Update simm-valuation-demo documentation and comments.
This commit is contained in:
kasiastreich 2017-01-06 13:50:18 +00:00 committed by GitHub
parent 3d747ff663
commit ee99d7e9d0
2 changed files with 14 additions and 12 deletions

View File

@ -339,6 +339,7 @@ Then, for all three:
5. Enter at least 3 trades - via the "Create New Trade" tab 5. Enter at least 3 trades - via the "Create New Trade" tab
6. On the "Agree Valuations" tab, click the "Start Calculations" button 6. On the "Agree Valuations" tab, click the "Start Calculations" button
Additionally, you can confirm that these trades are not visible from `Bank C's node <http://localhost:10009/web/simmvaluationdemo/>`_. Additionally, you can confirm that these trades are not visible from `Bank C's node <http://localhost:10009/web/simmvaluationdemo/>`_
and are visible to `Bank B <http://localhost:10007/web/simmvaluationdemo/>`_.
Please note that any URL path information after `simmvaluationdemo` should not be bookmarked or navigated to directly, as it is only provided for aesthetic purposes. Please note that any URL path information after `simmvaluationdemo` should not be bookmarked or navigated to directly, as it is only provided for aesthetic purposes.

View File

@ -5,15 +5,16 @@ import net.corda.node.driver.driver
import net.corda.node.services.transactions.SimpleNotaryService import net.corda.node.services.transactions.SimpleNotaryService
/** /**
* Sample main used for running within an IDE. Starts 3 nodes (A, B and Notary) as an alternative to running via gradle * Sample main used for running within an IDE. Starts 4 nodes (A, B, C and Notary/Controller) as an alternative to running via gradle
* This does not start any tests but has the nodes running in preparation for a live web demo or to receive commands * This does not start any tests but has the nodes running in preparation for a live web demo or to receive commands
* via the web api. * via the web api.
*/ */
fun main(args: Array<String>) { fun main(args: Array<String>) {
driver(dsl = { driver(dsl = {
startNode("Notary", setOf(ServiceInfo(SimpleNotaryService.type))) startNode("Controller", setOf(ServiceInfo(SimpleNotaryService.type)))
startNode("Bank A") startNode("Bank A")
startNode("Bank B") startNode("Bank B")
startNode("Bank C")
waitForAllNodesToFinish() waitForAllNodesToFinish()
}, isDebug = true) }, isDebug = true)
} }