mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 14:11:21 +00:00
rename COUNT to ID
This commit is contained in:
parent
3d47ef9d74
commit
1c24031dd2
@ -3,7 +3,7 @@ set -eu
|
|||||||
|
|
||||||
DOCKER_IMAGE=$1
|
DOCKER_IMAGE=$1
|
||||||
NETWORK_NAME=$2
|
NETWORK_NAME=$2
|
||||||
COUNT=$3
|
ID=$3
|
||||||
N=$4
|
N=$4
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
@ -14,11 +14,11 @@ N=$4
|
|||||||
###############################################################
|
###############################################################
|
||||||
|
|
||||||
|
|
||||||
echo "Testing fastsync on node $COUNT"
|
echo "Testing fastsync on node $ID"
|
||||||
|
|
||||||
# kill peer
|
# kill peer
|
||||||
set +e # circle sigh :(
|
set +e # circle sigh :(
|
||||||
docker rm -vf local_testnet_$COUNT
|
docker rm -vf local_testnet_$ID
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# restart peer - should have an empty blockchain
|
# restart peer - should have an empty blockchain
|
||||||
@ -26,10 +26,10 @@ SEEDS="$(test/p2p/ip.sh 1):46656"
|
|||||||
for j in `seq 2 $N`; do
|
for j in `seq 2 $N`; do
|
||||||
SEEDS="$SEEDS,$(test/p2p/ip.sh $j):46656"
|
SEEDS="$SEEDS,$(test/p2p/ip.sh $j):46656"
|
||||||
done
|
done
|
||||||
bash test/p2p/peer.sh $DOCKER_IMAGE $NETWORK_NAME $COUNT $SEEDS
|
bash test/p2p/peer.sh $DOCKER_IMAGE $NETWORK_NAME $ID $SEEDS
|
||||||
|
|
||||||
# wait for peer to sync and check the app hash
|
# wait for peer to sync and check the app hash
|
||||||
bash test/p2p/client.sh $DOCKER_IMAGE $NETWORK_NAME fs_$COUNT "test/p2p/fast_sync/check_peer.sh $COUNT"
|
bash test/p2p/client.sh $DOCKER_IMAGE $NETWORK_NAME fs_$ID "test/p2p/fast_sync/check_peer.sh $ID"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "PASS"
|
echo "PASS"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user