Skip to content

Commit

Permalink
[FAB-8238]wrong orderer/peer type in fabric-ca sam
Browse files Browse the repository at this point in the history
The fabric-samples/fabric-ca/scripts/setup-fabric.sh script needs 
two small changes so that orderers and peers are registered with 
the correct type. They are currently defaulting to type 'client'.

Change-Id: Ibd813cd68ae1669bc39423826ca1d39ac57d16c1
Signed-off-by: luomin <luomin_tokyotech@hotmail.com>
  • Loading branch information
luomin committed Feb 14, 2018
1 parent 736c565 commit 305d6f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fabric-ca/scripts/setup-fabric.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function registerOrdererIdentities {
while [[ "$COUNT" -le $NUM_ORDERERS ]]; do
initOrdererVars $ORG $COUNT
log "Registering $ORDERER_NAME with $CA_NAME"
fabric-ca-client register -d --id.name $ORDERER_NAME --id.secret $ORDERER_PASS
fabric-ca-client register -d --id.name $ORDERER_NAME --id.secret $ORDERER_PASS --id.type orderer
COUNT=$((COUNT+1))
done
log "Registering admin identity with $CA_NAME"
Expand All @@ -63,7 +63,7 @@ function registerPeerIdentities {
while [[ "$COUNT" -le $NUM_PEERS ]]; do
initPeerVars $ORG $COUNT
log "Registering $PEER_NAME with $CA_NAME"
fabric-ca-client register -d --id.name $PEER_NAME --id.secret $PEER_PASS
fabric-ca-client register -d --id.name $PEER_NAME --id.secret $PEER_PASS --id.type peer
COUNT=$((COUNT+1))
done
log "Registering admin identity with $CA_NAME"
Expand Down

0 comments on commit 305d6f4

Please sign in to comment.