docker-compose-files/hyperledger_fabric/v2.3.0/scripts/test_channel_create.sh

23 lines
532 B
Bash
Raw Normal View History

2020-11-21 08:44:37 +08:00
#!/bin/bash
# Importing useful functions for cc testing
if [ -f ./func.sh ]; then
2021-03-04 06:06:06 +08:00
source ./func.sh
2020-11-21 08:44:37 +08:00
elif [ -f scripts/func.sh ]; then
2021-03-04 06:06:06 +08:00
source scripts/func.sh
2020-11-21 08:44:37 +08:00
fi
## Create channel
echo_b "=== Creating channel ${APP_CHANNEL} with ${APP_CHANNEL_TX}... ==="
#for (( i=1; i<150; i++ ));
#do
2021-03-04 06:06:06 +08:00
#APP_CHANNEL="channel"$i
#APP_CHANNEL_TX=${APP_CHANNEL}".tx"
2020-11-21 08:44:37 +08:00
channelCreate "${APP_CHANNEL}" "${APP_CHANNEL_TX}" 1 0 ${ORDERER0_URL} ${ORDERER0_TLS_ROOTCERT}
#done
echo_g "=== Created channel ${APP_CHANNEL} with ${APP_CHANNEL_TX} ==="
echo