You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FAB-4472] Improve documentation for block listener
This CR improves the documentation for the block listener example,
which lacks clarity and is hard to follow.
It also cleans up a few of the printed messages in the code.
Change-Id: I65b612520f526cb5f3f0616868bac762f8719548
Signed-off-by: Will Lahti <[email protected]>
Please be noted that if no msp info provided, it uses default MSP under fabric/sampleconfig.
12
-
# Example with e2e
13
-
Please make sure you have finished running the [e2e_cli example](https://github.com/hyperledger/fabric/tree/master/examples/e2e_cli). Before doing that, don't forget to make sure that TLS has been disabled by setting the CORE_PEER_TLS_ENABLED=***false*** in ``docker-compose-cli.yaml``, ``base/docker-compose-base.yaml`` and ``base/peer-base.yaml``.
12
+
Please note that the default MSP under fabric/sampleconfig will be used if no
13
+
MSP parameters are provided.
14
14
15
-
Suppose you just finished the All-in-one:
15
+
# Example with the e2e_cli example
16
+
In order to use the block listener with the e2e_cli example, make sure that TLS
17
+
has been disabled by setting CORE_PEER_TLS_ENABLED=***false*** in
18
+
``docker-compose-cli.yaml``, ``base/docker-compose-base.yaml`` and
19
+
``base/peer-base.yaml``.
20
+
21
+
Next, run the [e2e_cli example](https://github.com/hyperledger/fabric/tree/master/examples/e2e_cli).
22
+
23
+
Once the "All in one" command:
16
24
```sh
17
25
./network_setup.sh up
18
26
```
19
-
Attach event client to peer peer0.org1.example.com (suppose you are running block-listener in the host environment):
27
+
has completed, attach the event client to peer peer0.org1.example.com by doing
28
+
the following (assuming you are running block-listener in the host environment):
Now you should see the block content received in events client.
53
+
Now you should see the block content displayed in the terminal running the block
54
+
listener.
44
55
45
56
46
57
<arel="license"href="http://creativecommons.org/licenses/by/4.0/"><imgalt="Creative Commons License"style="border-width:0"src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />This work is licensed under a <arel="license"href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
0 commit comments