docker-compose-files/hyperledger_fabric/v1.0.5/scripts/test_channel_join.sh

24 lines
499 B
Bash
Raw Normal View History

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
2017-12-06 16:24:33 +08:00
echo_b "Having all peers join the channel ${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
2017-12-06 16:24:33 +08:00
#channelJoin ${APP_CHANNEL} 1 0
#channelJoin ${APP_CHANNEL} 1 1
#channelJoin ${APP_CHANNEL} 2 0
#channelJoin ${APP_CHANNEL} 2 1