[FAB-8238]wrong orderer/peer type in fabric-ca sam

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>
This commit is contained in:
luomin 2018-02-14 11:24:14 +09:00 committed by Min Luo
parent 736c565203
commit 305d6f47f8

View file

@ -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"
@ -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"