Advertisement
nyrsta

IOTA -Headless node - Mainnnet setup

Jun 4th, 2017
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. Setting up a headless node on Ubuntu(main net)
  2. --------------------------
  3.  
  4. It is recommended to use Oracle java 8
  5. A guide can be found here
  6. http://tipsonubuntu.com/2016/07/31/install-oracle-java-8-9-ubuntu-16-04-linux-mint-18/
  7.  
  8. Prerequirements
  9. $ apt-get install screen
  10. $ apt-get install npm
  11.  
  12.  
  13. Download latest iri release
  14. $ wget https://github.com/iotaledger/iri/releases/download/1.1.4.1/iri-1.1.4.1.jar
  15.  
  16.  
  17. Make sure all previous version DB are deleted before running IRI.
  18. Run with option 1 : Run IRI with ini file.
  19. In the same folder make a file called iota.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 = 14600
  25. TCP_RECEIVER_PORT = 15600
  26. NEIGHBORS = udp://ip_neighbour:port tcp://xx.xx.xx.xx:15777
  27. IXI_DIR = ixi
  28. HEADLESS = true
  29. DEBUG = true
  30. TESTNET = false
  31. DB_PATH = db
  32.  
  33. Please ask around for neighbours an add them in the ini file
  34.  
  35. Run the testnet IRI.jar
  36.  
  37. $ java -jar iri-1.1.4.1.jar -c iota.ini
  38.  
  39. OR WITHOUT usage of ini file
  40.  
  41. screen -S iota java -jar iri-1.1.4.1.jar -p 14700 -u 14600 -t 15600 -n "udp://ip_neighbour:14777 tcp://ip_neighbour:port" --remote --remote-limit-api "attachToTangle, addNeighbors, removeNeighbors"
  42.  
  43. Run your spammer!
  44. If you don't have it please download it from github
  45.  
  46. https://github.com/iotacommunity/IOTA-ValueSpammer
  47. $ cd IOTA-ValueSpammer
  48. $ npm install
  49.  
  50. Configure spammer.js (you need node!)
  51. You can either way value spam or message spam (message spam tends to be faster it seems)
  52. Set VALUESPAM_ON to TRUE for value spam and change user seed to SPAM (that seed contains IOTA, please don't steal it ;)
  53. PLEASE DONT FORGET TO SET TESTNET to TRUE and IRI_PORT to chosen testnet PORT!
  54.  
  55. var REPEATER_ON = false; // REPEATER_ON = false: If you don't want the repeater functionality.
  56. var SPAM_ON = true; // SPAMER_ON = false: If you don't want the spammer functionality (no PoW!).
  57. // ^^^^^^^^^^^ One of the 2 options should be true,
  58. // otherwise it aint doing nothing!
  59. var VALUESPAM_ON = false; // VALUESPAM_ON = false:: If you don't want to spam with value (iota).
  60.  
  61. var USER_SEED = "SPAM"; // seed that contains iota and will be used for spamming with value.
  62. var SPAM_MESSAGE = "SPAMSPAMSPAM"; // only A-Z and 9 allowed!
  63. var SPAM_TAG = "UNIQUENAME" // only A-Z and 9 allowed!
  64. var SPAM_FREQUENCY = 1 // minimum spam interval in seconds.
  65. var SPAM_DEPTH_MIN = 3 // How deep to search for transactions to approve (minimum)
  66. var SPAM_DEPTH_MAX = 12 // How deep to search for transactions to approve (maximum)
  67. var IRI_PORT = 14700 // Must match your port configuration for iri process
  68. var TESTNET = true; // Set to true only if you are using testnet.
  69.  
  70. Set testnet = true for spamming on MinWeightMagnitude 13!
  71.  
  72. Start with node spammer.js or bash spammer.sh (the bash restart your spammer automatically after a crash)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement