Skip to content

Commit

Permalink
[FAB-1883] Add anchor peer usage documentation
Browse files Browse the repository at this point in the history
This just adds a usage example of how to specify anchor peers
when creating a channel.

Change-Id: Iab95af55ba9f8496456bcb3e4f193e7db67b2ff5
Signed-off-by: Yacov Manevich <yacovm@il.ibm.com>
  • Loading branch information
yacovm committed Jan 30, 2017
1 parent 15c301b commit 7467b43
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/channel-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,18 @@ In the above shell execute the create command
```
CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:5005 peer channel create -c myc1
```

This will create a channel genesis block file `myc1.block` to issue join commands with.
If you want to specify anchor peers, you can create anchor peer files in the following format:
peer-hostname
port
PEM file of peer certificate

See CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:5005 peer channel create -h for an anchor-peer file example
And pass the anchor peer files as a comma-separated argument with flag -a: in example:
```
CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:5005 peer channel create -c myc1 -a anchorPeer1.txt,anchorPeer2.txt
```

### Join a channel
Execute the join command to peer0 in the CLI container.
Expand Down

0 comments on commit 7467b43

Please sign in to comment.