mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
[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:
parent
736c565203
commit
305d6f47f8
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue