Advertisement
nyrsta

Testnet guide

Mar 29th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. Setting up a testnet node
  2. --------------------------
  3. Join #testnet channel and follow instruction from the devs!
  4. It is highly recommended to use a vps or pc that has never had a connection to mainnet.
  5.  
  6. It is recommended to use Oracle java 8
  7.  
  8. Download latest testnet git, check the pinned messages in #testnet or ask in the chat.
  9. You need to have maven installed to compile IRI
  10.  
  11. $ git clone https://github.com/iotaledger/iri -b testnet
  12. $ cd iri
  13. $ mvn clean compile
  14. $ mvn package
  15.  
  16. Make sure all DB are deleted!
  17.  
  18. Option 1 : Run IRI with ini file.
  19. In the same folder make a file called iota-testnet.ini and add the following
  20. Ofcourse you can choose the UDP port as you like BUT PLEASE MAKE SURE IT IS DIFFERENT FROM MAINNET
  21.  
  22. [IRI]
  23. PORT = 14700
  24. UDP_RECEIVER_PORT = 14777
  25. TCP_RECEIVER_PORT = 15777
  26. NEIGHBORS = udp://ip_neighbour:port tcp://xx.xx.xx.xx:15777
  27. IXI_DIR = ixi
  28. HEADLESS = true
  29. DEBUG = true
  30. TESTNET = true
  31. DB_PATH = db
  32. MAX_PEERS = 9
  33.  
  34. If MAX_PEERS is added and set higher non-tethered connection will be allowed with a maxium of the value you set!
  35.  
  36. Please ask around for testnet neighbours an add them in the ini file
  37.  
  38. Run the testnet IRI.jar
  39. FOR 1.1.3.10! Use the flag --testnet in the start command! (the iota-testnet.ini TESTNET parameter is not working atm)
  40.  
  41. $ java -jar ./target/iri-1.1.3.10.jar --testnet -c ./iota-testnet.ini
  42.  
  43. OR WITHOUT usage of ini file
  44.  
  45. screen -S iota java -jar ./iri-1.1.3.10.jar -p 14700 -u 14777 -t 15777 --testnet -n "udp://ip_neighbour:14777 tcp://ip_neighbour:port" --remote --remote-limit-api "attachToTangle, addNeighbors, removeNeighbors"
  46.  
  47. Run your spammer!
  48. If you don't have it please download it from github
  49.  
  50. https://github.com/iotacommunity/IOTA-ValueSpammer
  51.  
  52. Configure spammer.js (you need node!)
  53. You can either way value spam or message spam (message spam tends to be faster it seems)
  54. Set VALUESPAM_ON to TRUE for value spam and change user seed to SPAM (that seed contains IOTA, please don't steal it ;)
  55. PLEASE DONT FORGET TO SET TESTNET to TRUE and IRI_PORT to chosen testnet PORT!
  56.  
  57. var REPEATER_ON = false; // REPEATER_ON = false: If you don't want the repeater functionality.
  58. var SPAM_ON = true; // SPAMER_ON = false: If you don't want the spammer functionality (no PoW!).
  59. // ^^^^^^^^^^^ One of the 2 options should be true,
  60. // otherwise it aint doing nothing!
  61. var VALUESPAM_ON = false; // VALUESPAM_ON = false:: If you don't want to spam with value (iota).
  62.  
  63. var USER_SEED = "SPAM"; // seed that contains iota and will be used for spamming with value.
  64. var SPAM_MESSAGE = "SPAMSPAMSPAM"; // only A-Z and 9 allowed!
  65. var SPAM_TAG = "UNIQUE" // only A-Z and 9 allowed!
  66. var SPAM_FREQUENCY = 5 // minimum spam interval in seconds.
  67. var SPAM_DEPTH_MIN = 3 // How deep to search for transactions to approve (minimum)
  68. var SPAM_DEPTH_MAX = 12 // How deep to search for transactions to approve (maximum)
  69. var IRI_PORT = 14700 // Must match your port configuration for iri process
  70. var TESTNET = true; // Set to true only if you are using testnet.
  71.  
  72.  
  73. Start with node spammer.js or bash spammer.sh
  74.  
  75. You can follow the spam progress on
  76. http://stresstest.iota.org
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement