daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Oct 23rd, 2018 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # By @arjunbazinga
  3.  
  4.  
  5. IP=0.0.0.0
  6. AA=tcp://$IP
  7.  
  8. rm -rf new_testnet
  9. mkdir new_testnet
  10. cd new_testnet
  11.  
  12. tendermint testnet;
  13. declare -a rpc=(46657 46667 46677 46687)
  14. declare -a nodes=("mytestnet/node0/" "mytestnet/node1/" "mytestnet/node2/" "mytestnet/node3/")
  15.  
  16. declare -a p2p=(46656 46666 46676 46686)
  17.  
  18. SEEDS=""
  19. for (( i=0; i<4; i++ ));
  20. do
  21.   SEEDS=$SEEDS`tendermint --home ${nodes[$i]} show_node_id`@$IP:${p2p[$i]},
  22. done
  23. SEEDS=${SEEDS%?};
  24. echo $SEEDS
  25.  
  26. for (( i=0; i<4; i++ ));
  27. do
  28.   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'"
  29. done%
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top