2017-11-06 12:18:37 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Importing useful functions for cc testing
|
|
|
|
if [ -f ./func.sh ]; then
|
|
|
|
source ./func.sh
|
|
|
|
elif [ -f scripts/func.sh ]; then
|
|
|
|
source scripts/func.sh
|
|
|
|
fi
|
|
|
|
|
|
|
|
## Join all the peers to the channel
|
2018-01-23 17:53:52 +08:00
|
|
|
echo_b "=== Join peers ${PEERS} from org ${ORGS} into ${APP_CHANNEL}... ==="
|
2017-12-01 17:34:21 +08:00
|
|
|
|
|
|
|
for org in "${ORGS[@]}"
|
|
|
|
do
|
|
|
|
for peer in "${PEERS[@]}"
|
|
|
|
do
|
2017-12-06 16:24:33 +08:00
|
|
|
channelJoin ${APP_CHANNEL} $org $peer
|
2017-12-01 17:34:21 +08:00
|
|
|
done
|
|
|
|
done
|
2018-01-23 17:53:52 +08:00
|
|
|
|
|
|
|
echo_g "=== Join peers ${PEERS} from org ${ORGS} into ${APP_CHANNEL} Complete ==="
|
|
|
|
|
|
|
|
echo
|