docker-compose-files/hyperledger_fabric/v1.3.0/scripts/test_channel_getinfo.sh

26 lines
449 B
Bash
Raw Normal View History

2018-10-11 13:53:01 +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
echo_b "=== Getting info of channel ${APP_CHANNEL}... ==="
#set -x
for org in "${ORGS[@]}"
do
for peer in "${PEERS[@]}"
do
channelGetInfo ${APP_CHANNEL} $org $peer
done
done
echo_g "=== Get info of channel ${APP_CHANNEL} Complete ==="
echo