docker-compose-files/hyperledger_fabric/latest/scripts/test_channel_create.sh

23 lines
532 B
Bash
Raw Normal View History

2017-12-06 22:30:57 +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
## Create channel
2018-01-30 15:54:49 +08:00
echo_b "=== Creating channel ${APP_CHANNEL} with ${APP_CHANNEL_TX}... ==="
2019-04-01 11:12:53 +08:00
#for (( i=1; i<150; i++ ));
#do
#APP_CHANNEL="channel"$i
#APP_CHANNEL_TX=${APP_CHANNEL}".tx"
2019-05-02 17:30:13 +08:00
channelCreate "${APP_CHANNEL}" "${APP_CHANNEL_TX}" 1 0 ${ORDERER0_URL} ${ORDERER0_TLS_ROOTCERT}
2019-04-01 11:12:53 +08:00
#done
2018-01-30 15:54:49 +08:00
echo_g "=== Created channel ${APP_CHANNEL} with ${APP_CHANNEL_TX} ==="
echo