corda/samples/attachment-demo
Andrius Dagys bbcaf5d98c Demo bug fixes (#217)
* Add webAddress back to NMS as it shifts the port allocation for all subsequent nodes and causes all demos to break.

* Attachment demo: fix node names

* Notary demo: fix certificate paths & ports

* IRS demo: role decider fixed to allocate roles properly. Previously it used to pick current node as the Fixer, causing both nodes to initiate the trade flow, resulting in double spend exceptions..
2017-02-07 17:18:21 +00:00
..
lib Reimport samples to main repo 2016-11-17 15:51:28 +01:00
src Demo bug fixes (#217) 2017-02-07 17:18:21 +00:00
build.gradle Removed basedir from the config file as it's always overwritten by the --base-directory cmd line arg 2017-01-10 10:49:28 +00:00
gradle.properties Reimport samples to main repo 2016-11-17 15:51:28 +01:00
README.md Starting new pull request - previous one had conflict errors 2016-11-29 16:52:07 +00:00

Attachment Demo

This code demonstrates sending a transaction with an attachment from one to node to another, and the receiving node accessing the attachment.

Please see the either the online documentation for more info on the attachment demo, or the included offline version.

From the root directory of the repository, run the following commands (on mac / unix, replace gradle with ./gradlew)

gradle samples:attachment-demo:deployNodes 

./samples/attachment-demo/build/nodes/runnodes

gradle samples:attachment-demo:runRecipient  # (in one window)
gradle samples:attachment-demo:runSender  # (in another window)