Kill old testnet stuff, update main.cpp for new SocketManager abstraction.

This commit is contained in:
Adam Ierymenko
2014-10-21 15:33:35 -07:00
parent 2436e22f46
commit 29ba34ab7c
17 changed files with 20 additions and 111 deletions

View File

@@ -1,7 +0,0 @@
#!/bin/bash
export PATH=/bin:/usr/bin:/usr/local/bin
rm -rfv local-testnet/n????
find local-testnet -type f ! -name 'identity.*' -print0 | xargs -0 rm -fv
rm -rfv local-testnet/sn????/networks.d

View File

@@ -1,58 +0,0 @@
#!/bin/bash
export PATH=/bin:/usr/bin:/usr/local/bin
#if [ ! -x ../zerotier-one ]; then
# echo "$0: ../zerotier-one not found; build first"
# exit 1
#fi
if [ $# -lt 1 ]; then
echo "Usage: $0 <number of regular nodes to create>"
exit 1
fi
if [ ! -d ./local-testnet ]; then
echo "$0: cannot find local-testnet/ base for nodes"
exit 1
fi
cd local-testnet
supernodes=`echo sn????`
cd ..
create_nodes=$1
node_num=0
echo "Starting supernodes: $supernodes"
echo
for sn in $supernodes; do
node_path=local-testnet/$sn
node_port=2`echo $sn | cut -d n -f 2`
echo zerotier-one -T../root-topology/local-testnet/root-topology -p$node_port -u $node_path
../zerotier-one -T../root-topology/local-testnet/root-topology -p$node_port -u "$node_path" &
done
echo
echo "Starting $create_nodes regular nodes..."
echo
while [ $node_num -lt $create_nodes ]; do
node_path=local-testnet/`printf n%.4d $node_num`
node_port=`printf 3%.4d $node_num`
mkdir -p $node_path
echo zerotier-one -T../root-topology/local-testnet/root-topology -p$node_port -u $node_path
../zerotier-one -T../root-topology/local-testnet/root-topology -p$node_port -u "$node_path" &
node_num=`expr $node_num + 1`
done
echo
echo "Nodes are now running. Waiting for all nodes to exit."
echo
wait

View File

@@ -1 +0,0 @@
ccc0fa2960:0:0ced335940e712c4df8e1603615ace446fbc3587b28ecde54b87bb1e51c305206f58cc8268579fc22f9f49ac3d0aee36351b9509bee339b97b84774823a57046

View File

@@ -1 +0,0 @@
ccc0fa2960:0:0ced335940e712c4df8e1603615ace446fbc3587b28ecde54b87bb1e51c305206f58cc8268579fc22f9f49ac3d0aee36351b9509bee339b97b84774823a57046:dcfb128a5563f26fc94cad1344d2a754853d035d29ca4cbf0e08a632a87a384b4e5dfb2747384b27c1e0260084de9f2f55d5d66c1fa5ab079350b39ffb4df634

View File

@@ -1 +0,0 @@
8fd313ab35:0:4ba3a7cc2ac53b04a73bd211b0856910dc0a4349b4c575d251ec87edc98f2b76cb3dc4784bbf3e2655c83cc691a25b93c6b05afa4e97f70a9ec5d63ca55c7733

View File

@@ -1 +0,0 @@
8fd313ab35:0:4ba3a7cc2ac53b04a73bd211b0856910dc0a4349b4c575d251ec87edc98f2b76cb3dc4784bbf3e2655c83cc691a25b93c6b05afa4e97f70a9ec5d63ca55c7733:14ae15f13dd08e7e2b9862ce01d5816411b6906e3a57c60895498ece36da5c14550e5b389693dd7ec939cddf7ae322fb3e577bb73e296251f32e3ec27db2f015

View File

@@ -1 +0,0 @@
0b461c6c90:0:f0695a1150937661bc5305c16e331c20e57654794ba1eb3d070449e40594e72d6febdb32b44ac6a366488143a6163486d8ce2494b83e9d0cb7c489c71ae7c2e7

View File

@@ -1 +0,0 @@
0b461c6c90:0:f0695a1150937661bc5305c16e331c20e57654794ba1eb3d070449e40594e72d6febdb32b44ac6a366488143a6163486d8ce2494b83e9d0cb7c489c71ae7c2e7:bfaaa974483ff53b393b996e93cc7e76b1cb5050fa86c358eb710315965b1afc2d2e8dd62facf3f625c151ee63b1abf011aef75bd3a49d4f5b6f438f3ca77496

View File

@@ -1 +0,0 @@
36944299f2:0:e74012a40b803644d98bbdd15c87d8a8598d3bba70ecf33e9299614cb9e32801dfb4fc3713fd88660fd1085ed4df6a63c9f433fca3f74a1a672358201ea045b6

View File

@@ -1 +0,0 @@
36944299f2:0:e74012a40b803644d98bbdd15c87d8a8598d3bba70ecf33e9299614cb9e32801dfb4fc3713fd88660fd1085ed4df6a63c9f433fca3f74a1a672358201ea045b6:c34960bc4f36694dcb629a27dca490cc0fda2776c88a50781cdb54ce9e84dbbe616051e6f04a8185ddf8ef1c8c74e62867ff4cdb029269160f723d400679a1c5