|
@ -17,18 +17,18 @@ CLIENT_NAME="pex_addrbook_$ID" |
|
|
echo "1. restart peer $ID" |
|
|
echo "1. restart peer $ID" |
|
|
docker stop "local_testnet_$ID" |
|
|
docker stop "local_testnet_$ID" |
|
|
# preserve 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 cp "local_testnet_$ID:/go/src/github.com/tendermint/tendermint/test/p2p/data/mach1/core/config/addrbook.json" "/tmp/addrbook.json" |
|
|
set +e #CIRCLE |
|
|
set +e #CIRCLE |
|
|
docker rm -vf "local_testnet_$ID" |
|
|
docker rm -vf "local_testnet_$ID" |
|
|
set -e |
|
|
set -e |
|
|
|
|
|
|
|
|
# NOTE that we do not provide persistent_peers |
|
|
# NOTE that we do not provide persistent_peers |
|
|
bash test/p2p/peer.sh "$DOCKER_IMAGE" "$NETWORK_NAME" "$ID" "$PROXY_APP" "--p2p.pex --rpc.unsafe" |
|
|
bash test/p2p/peer.sh "$DOCKER_IMAGE" "$NETWORK_NAME" "$ID" "$PROXY_APP" "--p2p.pex --rpc.unsafe" |
|
|
docker cp "/tmp/addrbook.json" "local_testnet_$ID:/go/src/github.com/tendermint/tendermint/test/p2p/data/mach1/core/addrbook.json" |
|
|
|
|
|
|
|
|
docker cp "/tmp/addrbook.json" "local_testnet_$ID:/go/src/github.com/tendermint/tendermint/test/p2p/data/mach1/core/config/addrbook.json" |
|
|
echo "with the following addrbook:" |
|
|
echo "with the following addrbook:" |
|
|
cat /tmp/addrbook.json |
|
|
cat /tmp/addrbook.json |
|
|
# exec doesn't work on circle |
|
|
# exec doesn't work on circle |
|
|
# docker exec "local_testnet_$ID" cat "/go/src/github.com/tendermint/tendermint/test/p2p/data/mach1/core/addrbook.json" |
|
|
|
|
|
|
|
|
# docker exec "local_testnet_$ID" cat "/go/src/github.com/tendermint/tendermint/test/p2p/data/mach1/core/config/addrbook.json" |
|
|
echo "" |
|
|
echo "" |
|
|
|
|
|
|
|
|
# if the client runs forever, it means addrbook wasn't saved or was empty |
|
|
# if the client runs forever, it means addrbook wasn't saved or was empty |
|
@ -44,7 +44,7 @@ echo "1. restart peer $ID" |
|
|
docker stop "local_testnet_$ID" |
|
|
docker stop "local_testnet_$ID" |
|
|
set +e #CIRCLE |
|
|
set +e #CIRCLE |
|
|
docker rm -vf "local_testnet_$ID" |
|
|
docker rm -vf "local_testnet_$ID" |
|
|
set -e |
|
|
|
|
|
|
|
|
set -e |
|
|
|
|
|
|
|
|
# NOTE that we do not provide persistent_peers |
|
|
# NOTE that we do not provide persistent_peers |
|
|
bash test/p2p/peer.sh "$DOCKER_IMAGE" "$NETWORK_NAME" "$ID" "$PROXY_APP" "--p2p.pex --rpc.unsafe" |
|
|
bash test/p2p/peer.sh "$DOCKER_IMAGE" "$NETWORK_NAME" "$ID" "$PROXY_APP" "--p2p.pex --rpc.unsafe" |
|
|