5c53a91785
1. The runRPCCashIssue and runWebCashIssue gradle tasks didn't work because they were using the wrong ports 2. Notary lookup was failing because the lookup name didn't include the correct CN for the notary name (this slipped through when reverting the network parameters) The ports change occurred in #1922 which was attempting the fix the runIssuer gradle task. This is actually a misleading and redundant task as all it does is start up the nodes, which is what the documented deployNodes already does. The ports runIssuer allocated to the nodes were different to the ones specified in deployNodes. To make sure we have integration tests which closely match deployNodes, the BoC demo has been updated to make use of CordformDefinition. This keeps the node definitions in one place, removing the need to have disparate files in sync. runIssuer has been removed. |
||
---|---|---|
.. | ||
cordapp | ||
src/integration-test/kotlin/net/corda | ||
web | ||
build.gradle | ||
README.md |
IRS Demo
This demo brings up three nodes: Bank A, Bank B and a node that simultaneously runs a notary, a network map and an interest rates oracle. The two banks agree on an interest rate swap, and then do regular fixings of the deal as the time on a simulated clock passes.
Functionality is split into two parts - CordApp which provides actual distributed ledger backend and Spring Boot webapp which provides REST API and web frontend. Application communicate using Corda RPC protocol.
To run from the command line in Unix:
- Run
./gradlew samples:irs-demo:cordapp:deployNodes
to install configs and a command line tool undersamples/irs-demo/build
- Run
./gradlew samples:irs-demo:web:deployWebapps
to install configs and tools for running webservers - Move to the
samples/irs-demo/
directory - Run
./cordapp/build/nodes/runnodes
to open up three new terminals with the three nodes (you may have to install xterm) - Run
./web/build/webapps/runwebapps
to open three more terminals for associated webserver
To run from the command line in Windows:
- Run
gradlew.bat samples:irs-demo:cordapp:deployNodes
to install configs and a command line tool undersamples\irs-demo\build
- Run
gradlew.bat samples:irs-demo:web:deployWebapps
to install configs and tools for running webservers - Run
cd samples\irs-demo
to change current working directory - Run
cordapp\build\nodes\runnodes
to open up several 3 terminals for each nodes - Run
web\build\webapps\webapps
to open up several 3 terminals for each nodes' webservers
This demo also has a web app. To use this, run nodes and then navigate to http://localhost:10007/ and http://localhost:10010/ to see each node's view of the ledger.
To use the web app, click the "Create Deal" button, fill in the form, then click the "Submit" button. You can then use the time controls at the top left of the home page to run the fixings. Click any individual trade in the blotter to view it.
Note: The IRS web UI currently has a bug when changing the clock time where it may show no numbers or apply fixings inconsistently. The issues will be addressed in a future milestone release. Meanwhile, you can take a look at a simpler oracle example here: https://github.com/corda/oracle-example.