Browse Source

test/p2p/fast_sync: use --pex on restart

pull/426/head
Ethan Buchman 8 years ago
parent
commit
d93d754972
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      test/p2p/fast_sync/test_peer.sh
  2. +1
    -1
      test/p2p/pex/test.sh

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

@ -27,7 +27,7 @@ SEEDS="$(test/p2p/ip.sh 1):46656"
for j in `seq 2 $N`; do
SEEDS="$SEEDS,$(test/p2p/ip.sh $j):46656"
done
bash test/p2p/peer.sh $DOCKER_IMAGE $NETWORK_NAME $ID $PROXY_APP "--seeds $SEEDS"
bash test/p2p/peer.sh $DOCKER_IMAGE $NETWORK_NAME $ID $PROXY_APP "--seeds $SEEDS --pex"
# wait for peer to sync and check the app hash
bash test/p2p/client.sh $DOCKER_IMAGE $NETWORK_NAME fs_$ID "test/p2p/fast_sync/check_peer.sh $ID"


+ 1
- 1
test/p2p/pex/test.sh View File

@ -14,7 +14,7 @@ echo "(assuming peers are started with pex enabled)"
echo "1. restart peer $ID"
docker stop "local_testnet_$ID"
# preserce addrbook.json
# preserve addrbook.json
docker cp "local_testnet_$ID:/go/src/github.com/tendermint/tendermint/test/p2p/data/mach1/core/addrbook.json" "/tmp/addrbook.json"
docker rm -vf "local_testnet_$ID"


Loading…
Cancel
Save