Browse Source

rename COUNT to ID

pull/343/head
Anton Kalyaev 8 years ago
committed by Ethan Buchman
parent
commit
1c24031dd2
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      test/p2p/fast_sync/test_peer.sh

+ 5
- 5
test/p2p/fast_sync/test_peer.sh View File

@ -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…
Cancel
Save