mirror of
https://github.com/corda/corda.git
synced 2024-12-20 21:43:14 +00:00
d04e48740b
network-parameters file read in by the node at startup, of which only the list of notaries is used. For now, the driver and MockNetwork have been updated to require notaries to be started first. This is so that the same set of network parameters can be defined for all the nodes. CN in the legal name is not longer disallowed since it's no longer reserved for distributed notary names. Single-node notaries now only have one identity, their main identity. Nodes part of a cluster continue to have two. (Based off Kasia's work) |
||
---|---|---|
.. | ||
src | ||
build.gradle | ||
README.md |
Trader demo
This demo brings up four nodes: Bank A, Bank B, Bank Of Corda, and a notary node that they all use. Bank A will be the buyer, and requests some cash from the Bank of Corda in order to acquire commercial paper from Bank B, the seller.
To run from the command line in Unix:
- Run
./gradlew samples:trader-demo:deployNodes
to create a set of configs and installs undersamples/trader-demo/build/nodes
- Run
./samples/trader-demo/build/nodes/runnodes
to open up four new terminals with the four nodes - Run
./gradlew samples:trader-demo:runBank
to instruct the bank node to issue cash and commercial paper to the buyer and seller nodes respectively - Run
./gradlew samples:trader-demo:runSeller
to trigger the transaction. If you enteredflow watch
, you can see flows running on both sides of transaction. Additionally you should see final trade information displayed to your terminal
To run from the command line in Windows:
- Run
gradlew samples:trader-demo:deployNodes
to create a set of configs and installs undersamples\trader-demo\build\nodes
- Run
samples\trader-demo\build\nodes\runnodes
to open up four new terminals with the four nodes - Run
gradlew samples:trader-demo:runBank
to instruct the buyer node to request issuance of some cash from the Bank of Corda node - Run
gradlew samples:trader-demo:runSeller
to trigger the transaction. If you enteredflow watch
, you can see flows running on both sides of transaction. Additionally you should see final trade information displayed to your terminal