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
|
|
|
|
2017-12-29 21:52:46 +08:00
|
|
|
channelFetchAll ${APP_CHANNEL} $org $peer
|
2017-10-08 13:55:16 +08:00
|
|
|
|
2017-12-29 21:52:46 +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
|