Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Setting up a testnet node
- --------------------------
- Join #testnet channel and follow instruction from the devs!
- It is highly recommended to use a vps or pc that has never had a connection to mainnet.
- It is recommended to use Oracle java 8
- Download latest testnet git, check the pinned messages in #testnet or ask in the chat.
- You need to have maven installed to compile IRI
- $ git clone https://github.com/iotaledger/iri -b testnet
- $ cd iri
- $ mvn clean compile
- $ mvn package
- Make sure all DB are deleted!
- Option 1 : Run IRI with ini file.
- In the same folder make a file called iota-testnet.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 = 14777
- TCP_RECEIVER_PORT = 15777
- NEIGHBORS = udp://ip_neighbour:port tcp://xx.xx.xx.xx:15777
- IXI_DIR = ixi
- HEADLESS = true
- DEBUG = true
- TESTNET = true
- DB_PATH = db
- MAX_PEERS = 9
- If MAX_PEERS is added and set higher non-tethered connection will be allowed with a maxium of the value you set!
- Please ask around for testnet neighbours an add them in the ini file
- Run the testnet IRI.jar
- FOR 1.1.3.10! Use the flag --testnet in the start command! (the iota-testnet.ini TESTNET parameter is not working atm)
- $ java -jar ./target/iri-1.1.3.10.jar --testnet -c ./iota-testnet.ini
- OR WITHOUT usage of ini file
- 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"
- Run your spammer!
- If you don't have it please download it from github
- https://github.com/iotacommunity/IOTA-ValueSpammer
- 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 = "UNIQUE" // only A-Z and 9 allowed!
- var SPAM_FREQUENCY = 5 // 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.
- Start with node spammer.js or bash spammer.sh
- You can follow the spam progress on
- http://stresstest.iota.org
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement