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
|
|
|
|
2017-12-06 16:24:33 +08:00
|
|
|
echo_b "=== Fetching blocks ==="
|
2017-10-08 13:55:16 +08:00
|
|
|
|
2017-12-19 14:40:39 +08:00
|
|
|
for i in {0..6}
|
2017-12-06 16:24:33 +08:00
|
|
|
do
|
|
|
|
echo_b "Fetch block $i"
|
|
|
|
channelFetch ${APP_CHANNEL} $org $peer $i
|
|
|
|
done
|
2017-10-08 13:55:16 +08:00
|
|
|
|
2017-12-06 16:24:33 +08:00
|
|
|
echo_g "Block fetching done!"
|
2017-10-08 13:55:16 +08:00
|
|
|
|
|
|
|
|
2017-12-15 12:05:12 +08:00
|
|
|
for i in {0..1}
|
2017-12-06 16:24:33 +08:00
|
|
|
do
|
|
|
|
echo_b "Fetch block $i"
|
|
|
|
channelFetch ${SYS_CHANNEL} $org $peer $i
|
|
|
|
done
|
2017-10-08 13:55:16 +08:00
|
|
|
|
2017-12-06 16:24:33 +08:00
|
|
|
exit 0
|