2017-11-02 10:19:05 +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-11-24 14:45:16 +08:00
|
|
|
org=1
|
|
|
|
peer=0
|
2017-11-02 10:19:05 +08:00
|
|
|
|
2018-01-23 17:53:52 +08:00
|
|
|
echo_b "=== Fetching blocks of channel ${APP_CHANNEL} and ${SYS_CHANNEL} ==="
|
2017-11-02 10:19:05 +08:00
|
|
|
|
2017-12-29 22:29:56 +08:00
|
|
|
channelFetchAll ${APP_CHANNEL} $org $peer
|
2017-11-26 19:50:49 +08:00
|
|
|
|
2017-12-29 22:29:56 +08:00
|
|
|
channelFetchAll ${SYS_CHANNEL} $org $peer
|
2017-12-29 21:52:46 +08:00
|
|
|
|
2018-01-23 17:53:52 +08:00
|
|
|
echo_g "=== Fetched Blocks from channels done! ==="
|
|
|
|
|
|
|
|
echo
|