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

24 lines
454 B
Bash
Raw Normal View History

2017-10-08 13:55:16 +08:00
#!/usr/bin/env bash
# This script will fetch blocks for testing.
# 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
2017-12-06 16:24:33 +08:00
org=1
peer=0
2017-10-08 13:55:16 +08:00
2018-01-30 15:54:49 +08:00
echo_b "=== Fetching blocks of channel ${APP_CHANNEL} and ${SYS_CHANNEL} ==="
2017-10-08 13:55:16 +08:00
channelFetchAll ${APP_CHANNEL} $org $peer
2017-10-08 13:55:16 +08:00
channelFetchAll ${SYS_CHANNEL} $org $peer
2017-12-26 13:28:02 +08:00
2018-01-30 15:54:49 +08:00
echo_g "=== Fetched Blocks from channels done! ==="
echo