From e50f88dd21490869efc2b7165fc5a7825810e9b1 Mon Sep 17 00:00:00 2001 From: Paul O'M Date: Wed, 16 Sep 2020 11:39:18 +0100 Subject: [PATCH] commercial paper enhancements Signed-off-by: Paul O'M --- commercial-paper/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commercial-paper/README.md b/commercial-paper/README.md index adf55199..a0450960 100644 --- a/commercial-paper/README.md +++ b/commercial-paper/README.md @@ -514,7 +514,9 @@ npm install The docker containers don't contain the node or Java runtimes; so it is best to exit the docker containers - but keep the windows open and run the applications locally. -As mentioned earlier in the Sample introduction section, transaction _inputs_ are recorded on the ledger, as well as any asset _state_ changes. Just *before* you run the _issue_ application script below - you need to launch a block 'listener' application that will show you these _inputs_, as you complete each transaction in the commercial paper lifecycle (eg. Paper Number: 00001, 00002 etc) . Its best to open a new terminal for this in the `commercial-paper/organization/magnetocorp/application` directory (javascript), and launch the listener application immediately after you add Isabella's identity to the wallet, see below. Once launched, it will show the inputs for transactions that are committed to blocks (ie part of the ledger). (Initially, the listener may show some spurious messages, and then go into a _listening_ state). As transactions complete below, messages will be displayed by the listener - so keep an eye out. +As mentioned earlier in the Sample introduction section, transaction _inputs_ are recorded on the ledger, as well as any asset _state_ changes. Just *before* you run the _issue_ application script below - you need to launch a block 'listener' application that will show you these _inputs_, as you complete each transaction in the commercial paper lifecycle (eg. Paper Number: 00001, 00002 etc) . + +For the listener, its best to open a *new* terminal for this in the `commercial-paper/organization/magnetocorp/application` directory (javascript). Next, run the `addToWallet` step in the `issue` transaction below, to add Isabella's identity to the wallet - the listener will use this wallet. Once the listener is launched, it will show the inputs for transactions you will perform and which are committed to blocks (ie part of the ledger). Note: initially, the listener may show a spurious message, and then go into a _listening_ or wait state). As transactions complete below, messages will be displayed by the listener - so keep an eye out. *After* adding Isabella's wallet, you can then launch the listener as follows: ``` node cpListener.js