Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Setting up a headless node on Ubuntu(main net)
- --------------------------
- It is recommended to use Oracle java 8
- A guide can be found here
- http://tipsonubuntu.com/2016/07/31/install-oracle-java-8-9-ubuntu-16-04-linux-mint-18/
- Prerequirements
- $ apt-get install screen
- $ apt-get install npm
- Download latest iri release
- $ wget https://github.com/iotaledger/iri/releases/download/1.1.4.1/iri-1.1.4.1.jar
- Make sure all previous version DB are deleted before running IRI.
- Run with option 1 : Run IRI with ini file.
- In the same folder make a file called iota.ini and add the following
- Ofcourse you can choose the UDP port as you like BUT PLEASE MAKE SURE IT IS DIFFERENT FROM MAINNET
- [IRI]
- PORT = 14700
- UDP_RECEIVER_PORT = 14600
- TCP_RECEIVER_PORT = 15600
- NEIGHBORS = udp://ip_neighbour:port tcp://xx.xx.xx.xx:15777
- IXI_DIR = ixi
- HEADLESS = true
- DEBUG = true
- TESTNET = false
- DB_PATH = db
- Please ask around for neighbours an add them in the ini file
- Run the testnet IRI.jar
- $ java -jar iri-1.1.4.1.jar -c iota.ini
- OR WITHOUT usage of ini file
- 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"
- Run your spammer!
- If you don't have it please download it from github
- https://github.com/iotacommunity/IOTA-ValueSpammer
- $ cd IOTA-ValueSpammer
- $ npm install
- Configure spammer.js (you need node!)
- You can either way value spam or message spam (message spam tends to be faster it seems)
- Set VALUESPAM_ON to TRUE for value spam and change user seed to SPAM (that seed contains IOTA, please don't steal it ;)
- PLEASE DONT FORGET TO SET TESTNET to TRUE and IRI_PORT to chosen testnet PORT!
- var REPEATER_ON = false; // REPEATER_ON = false: If you don't want the repeater functionality.
- var SPAM_ON = true; // SPAMER_ON = false: If you don't want the spammer functionality (no PoW!).
- // ^^^^^^^^^^^ One of the 2 options should be true,
- // otherwise it aint doing nothing!
- var VALUESPAM_ON = false; // VALUESPAM_ON = false:: If you don't want to spam with value (iota).
- var USER_SEED = "SPAM"; // seed that contains iota and will be used for spamming with value.
- var SPAM_MESSAGE = "SPAMSPAMSPAM"; // only A-Z and 9 allowed!
- var SPAM_TAG = "UNIQUENAME" // only A-Z and 9 allowed!
- var SPAM_FREQUENCY = 1 // minimum spam interval in seconds.
- var SPAM_DEPTH_MIN = 3 // How deep to search for transactions to approve (minimum)
- var SPAM_DEPTH_MAX = 12 // How deep to search for transactions to approve (maximum)
- var IRI_PORT = 14700 // Must match your port configuration for iri process
- var TESTNET = true; // Set to true only if you are using testnet.
- Set testnet = true for spamming on MinWeightMagnitude 13!
- 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