Skip to content

Commit 7467b43

Browse files
committed
[FAB-1883] Add anchor peer usage documentation
This just adds a usage example of how to specify anchor peers when creating a channel. Change-Id: Iab95af55ba9f8496456bcb3e4f193e7db67b2ff5 Signed-off-by: Yacov Manevich <[email protected]>
1 parent 15c301b commit 7467b43

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/channel-setup.md

+11
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,18 @@ In the above shell execute the create command
4040
```
4141
CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:5005 peer channel create -c myc1
4242
```
43+
4344
This will create a channel genesis block file `myc1.block` to issue join commands with.
45+
If you want to specify anchor peers, you can create anchor peer files in the following format:
46+
peer-hostname
47+
port
48+
PEM file of peer certificate
49+
50+
See CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:5005 peer channel create -h for an anchor-peer file example
51+
And pass the anchor peer files as a comma-separated argument with flag -a: in example:
52+
```
53+
CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:5005 peer channel create -c myc1 -a anchorPeer1.txt,anchorPeer2.txt
54+
```
4455

4556
### Join a channel
4657
Execute the join command to peer0 in the CLI container.

0 commit comments

Comments
 (0)