Change IOU Example docs (#4408)

This commit is contained in:
Anton Markov 2018-12-13 16:56:53 +02:00 committed by Viktor Kolomeyko
parent 32041930f4
commit 870058e72d
2 changed files with 13 additions and 12 deletions

View File

@ -20,6 +20,7 @@ see changes to this list.
* Andrzej Grzesik (R3)
* Anthony Keenan (R3)
* Anthony Woolley (Société Générale)
* Anton Markov (Industria)
* Anton Semenov (Commerzbank)
* Antonio Cerrato (SEB)
* Antony Lewis (R3)

View File

@ -225,8 +225,8 @@ For each node, the ``runnodes`` script creates a node tab/window:
Logs can be found in : /Users/joeldudley/Desktop/cordapp-example/kotlin-source/build/nodes/PartyA/logs
Database connection url is : jdbc:h2:tcp://localhost:59472/node
Incoming connection address : localhost:10007
Listening on port : 10007
Incoming connection address : localhost:10005
Listening on port : 10005
Loaded CorDapps : corda-finance-corda-3.0, cordapp-example-0.1, corda-core-corda-3.0
Node for "PartyA" started up and registered in 38.59 sec
@ -241,12 +241,12 @@ For every node except the notary, the script also creates a webserver terminal t
.. sourcecode:: none
Logs can be found in /Users/username/Desktop/cordapp-example/kotlin-source/build/nodes/PartyA/logs/web
Starting as webserver: localhost:10009
Starting as webserver: localhost:10007
Webserver started up in 42.02 sec
It usually takes around 60 seconds for the nodes to finish starting up. To ensure that all the nodes are running, you
can query the 'status' end-point located at ``http://localhost:[port]/api/status`` (e.g.
``http://localhost:10009/api/status`` for ``PartyA``).
``http://localhost:10007/api/status`` for ``PartyA``).
Running the example CorDapp from IntelliJ
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -267,8 +267,8 @@ Via HTTP
~~~~~~~~
The nodes' webservers run locally on the following ports:
* PartyA: ``localhost:10009``
* PartyB: ``localhost:10012``
* PartyA: ``localhost:10007``
* PartyB: ``localhost:10011``
* PartyC: ``localhost:10015``
These ports are defined in each node's node.conf file under ``kotlin-source/build/nodes/NodeX/node.conf``.
@ -294,9 +294,9 @@ To create an IOU between PartyA and PartyB, run the following command from the c
.. sourcecode:: bash
curl -X PUT 'http://localhost:10009/api/example/create-iou?iouValue=1&partyName=O=PartyB,L=New%20York,C=US'
curl -X PUT 'http://localhost:10007/api/example/create-iou?iouValue=1&partyName=O=PartyB,L=New%20York,C=US'
Note that both PartyA's port number (``10009``) and PartyB are referenced in the PUT request path. This command
Note that both PartyA's port number (``10007``) and PartyB are referenced in the PUT request path. This command
instructs PartyA to agree an IOU with PartyB. Once the process is complete, both nodes will have a signed, notarised
copy of the IOU. PartyC will not.
@ -318,13 +318,13 @@ Assuming all went well, you can view the newly-created IOU by accessing the vaul
*Via the HTTP API:*
* PartyA's vault: Navigate to http://localhost:10009/api/example/ious
* PartyB's vault: Navigate to http://localhost:10012/api/example/ious
* PartyA's vault: Navigate to http://localhost:10007/api/example/ious
* PartyB's vault: Navigate to http://localhost:10011/api/example/ious
*Via web/example:*
* PartyA: Navigate to http://localhost:10009/web/example and hit the "refresh" button
* PartyB: Navigate to http://localhost:10012/web/example and hit the "refresh" button
* PartyA: Navigate to http://localhost:10007/web/example and hit the "refresh" button
* PartyB: Navigate to http://localhost:10011/web/example and hit the "refresh" button
The vault and web front-end of PartyC (at ``localhost:10015``) will not display any IOUs. This is because PartyC was
not involved in this transaction.