mirror of
https://github.com/corda/corda.git
synced 2025-02-20 17:33:15 +00:00
Updates ports to match new CorDapp example ports. (#3088)
This commit is contained in:
parent
493b8a99a0
commit
173d0f2ada
@ -233,8 +233,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:10005
|
||||
Listening on port : 10005
|
||||
Incoming connection address : localhost:10007
|
||||
Listening on port : 10007
|
||||
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
|
||||
|
||||
@ -249,12 +249,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:10007
|
||||
Starting as webserver: localhost:10009
|
||||
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:10007/api/status`` for ``PartyA``).
|
||||
``http://localhost:10009/api/status`` for ``PartyA``).
|
||||
|
||||
Running the example CorDapp from IntelliJ
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@ -275,9 +275,9 @@ Via HTTP
|
||||
~~~~~~~~
|
||||
The nodes' webservers run locally on the following ports:
|
||||
|
||||
* PartyA: ``localhost:10007``
|
||||
* PartyB: ``localhost:10010``
|
||||
* PartyC: ``localhost:10013``
|
||||
* PartyA: ``localhost:10009``
|
||||
* PartyB: ``localhost:10012``
|
||||
* PartyC: ``localhost:10015``
|
||||
|
||||
These ports are defined in each node's node.conf file under ``kotlin-source/build/nodes/NodeX/node.conf``.
|
||||
|
||||
@ -302,9 +302,9 @@ To create an IOU between PartyA and PartyB, run the following command from the c
|
||||
|
||||
.. sourcecode:: bash
|
||||
|
||||
curl -X PUT 'http://localhost:10007/api/example/create-iou?iouValue=1&partyName=O=PartyB,L=New%20York,C=US'
|
||||
curl -X PUT 'http://localhost:10009/api/example/create-iou?iouValue=1&partyName=O=PartyB,L=New%20York,C=US'
|
||||
|
||||
Note that both PartyA's port number (``10007``) and PartyB are referenced in the PUT request path. This command
|
||||
Note that both PartyA's port number (``10009``) 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.
|
||||
|
||||
@ -326,15 +326,15 @@ 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:10007/api/example/ious
|
||||
* PartyB's vault: Navigate to http://localhost:10010/api/example/ious
|
||||
* PartyA's vault: Navigate to http://localhost:10009/api/example/ious
|
||||
* PartyB's vault: Navigate to http://localhost:10012/api/example/ious
|
||||
|
||||
*Via web/example:*
|
||||
|
||||
* PartyA: Navigate to http://localhost:10007/web/example and hit the "refresh" button
|
||||
* PartyA: Navigate to http://localhost:10010/web/example and hit the "refresh" button
|
||||
* PartyA: Navigate to http://localhost:10009/web/example and hit the "refresh" button
|
||||
* PartyA: Navigate to http://localhost:10012/web/example and hit the "refresh" button
|
||||
|
||||
The vault and web front-end of PartyC (at ``localhost:10013``) will not display any IOUs. This is because PartyC was
|
||||
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.
|
||||
|
||||
Via the interactive shell (terminal only)
|
||||
@ -430,7 +430,7 @@ The nodes can be split across different machines and configured to communicate a
|
||||
|
||||
After deploying the nodes, navigate to the build folder (``kotlin-source/build/nodes``) and for each node that needs to
|
||||
be moved to another machine open its config file and change the Artemis messaging address to the IP address of the machine
|
||||
where the node will run (e.g. ``p2pAddress="10.18.0.166:10006"``).
|
||||
where the node will run (e.g. ``p2pAddress="10.18.0.166:10007"``).
|
||||
|
||||
These changes require new node-info files to be distributed amongst the nodes. Use the network bootstrapper tool
|
||||
(see :doc:`setting-up-a-corda-network` for more information on this and how to built it) to update the files and have
|
||||
|
Loading…
x
Reference in New Issue
Block a user