Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # By @arjunbazinga
- IP=0.0.0.0
- AA=tcp://$IP
- rm -rf new_testnet
- mkdir new_testnet
- cd new_testnet
- tendermint testnet;
- declare -a rpc=(46657 46667 46677 46687)
- declare -a nodes=("mytestnet/node0/" "mytestnet/node1/" "mytestnet/node2/" "mytestnet/node3/")
- declare -a p2p=(46656 46666 46676 46686)
- SEEDS=""
- for (( i=0; i<4; i++ ));
- do
- SEEDS=$SEEDS`tendermint --home ${nodes[$i]} show_node_id`@$IP:${p2p[$i]},
- done
- SEEDS=${SEEDS%?};
- echo $SEEDS
- for (( i=0; i<4; i++ ));
- do
- gnome-terminal -e "bash -c 'echo $i; tendermint node --home ${nodes[$i]} --rpc.laddr="$AA:${rpc[$i]}" --p2p.laddr="$AA:${p2p[$i]}" --p2p.seeds=$SEEDS --proxy_app=kvstore --consensus.create_empty_blocks=false; exec $SHELL'"
- done%
Add Comment
Please, Sign In to add comment