mirror of
https://github.com/corda/corda.git
synced 2024-12-22 22:32:26 +00:00
80591bc6fd
* Introducing linear pointer. * Added design document. Added StatePointer interface. Updated design document. Updated StatePointer implementation. Added doc section for state pointer. * Updated design document. Added API for StatePointer. * Update core/src/main/kotlin/net/corda/core/contracts/Structures.kt Co-Authored-By: roger3cev <roger.willis@r3cev.com> * Update core/src/main/kotlin/net/corda/core/contracts/Structures.kt Co-Authored-By: roger3cev <roger.willis@r3cev.com> * Update core/src/main/kotlin/net/corda/core/contracts/Structures.kt Co-Authored-By: roger3cev <roger.willis@r3cev.com> * Update docs/source/design/linear-pointer/design.md Co-Authored-By: roger3cev <roger.willis@r3cev.com> * Update docs/source/design/linear-pointer/design.md Co-Authored-By: roger3cev <roger.willis@r3cev.com> * Resolve pointers Added test to check pointers are resolved. Updated docs and kdocs. Reverted changes to api-current.txt Revert "Reverted changes to api-current.txt" This reverts commit dc1cece91a595a4e772f63917b830c7e1fd0586d. Fix CI bug. Made StatePointers type safe. Resolving StatePointers is now optionally recursive Addressed review comments. Fixed compile error. Addressed review comments. Fixed bug in state pointer search. Improved efficiency of state pointer search. Removed whitespace. TxBuilder logs warning when no service hub is supplied for resolving pointers as opposed to throwing an exception. * Addressed review comments. |
||
---|---|---|
.. | ||
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