How to setup multiple Masternodes for windows
Step-by-step guide for starting multiple masternodes (3 masternodes in this example)
STEP 1 : Prepairing masternodes
1 - Choose the place where you will hold you masternodes dirs (you need 1,5Gb free space for every masternode)
2 - Create folder "SCXMN1" there
3 - Copy file "StarCashX-qt.exe" in folder "SCXMN1"
4 - Create in folder "SCXMN1" new folder "data"
5 - Copy file "blk0001.dat" and folder "txleveldb" in created folder "data"
6 - Rename "StarCashX-qt.exe" to the "SCXMN1.exe"
7 - Press Win+R and type "cmd" and press Enter
8 - Now type there:
Code:
echo start scxmn1.exe -datadir=./data > %homepath%/Desktop/startmn1.cmd
9 - Move file "startmn1.cmd" from Desktop to the "SCXMN1.exe" folder
10 - Repeat the process from step 2 for each masternode you want to created, with changing mn1 to mn2, mn3
11 - Run startmn1.cmd, startmn2.cmd and startmn3.cmd, wait for complete loading wallets and complete syncing with blockchain
12 - Now you can exit from each running masternode wallets
STEP 2 : Prepairing controller wallet
1 - Open your main wallet where you have your coins
2 - Go to Recieve tab
3 - Press button "New address" and enter "Masternode 1" in Label (do not check "Stealth address")
4 - Send to this address exactly 3000 StarCashX
5 - Wait for 1 confirmation of transaction and go to the Debug console
6 - Run command "masternode genkey" and write down generated key (this is your masternode private key)
7 - Run command "masternode outputs" and write down hexnumbers (this is your masternode tx) and digit after ":" (this is tx index)
8 - Go to Masternodes tab and switch to the "My Masternodes"
9 - Press button "Create"
10 - Enter "Alias" - "MN1" (do not use spaces and special charatcers)
11 - Enter "Address" - "YOUREXTERNALIP:PORT" (your external white ip and port for masternode)
12 - Enter "Privkey" - masternode private key you generated with "masternode genkey"
13 - Enter "TxHash" - masternode tx from "masternode outputs" command
14 - Enter "Output Index" - tx index from "masternode outputs" command
15 - Now you can press "Ok"
16 - Repeat process from step 2 for MN2 and MN3. With renaming MN1 to MN2 and MN3 and changing port
#################################################################################################################################################
When you get to step 7 "masternode outputs" in second time you will see 2 lines with txhash and index. You must choose the new line with txhash.
When you get to step 7 "masternode outputs" in third time you will see 3 lines with txhash and index. You must choose the new line with txhash.
#################################################################################################################################################
17 - Press "Update" and you will see all three masternodes in list with status "Not in the masternode list."
#################################################################################################################################################
Steps 8-15 creates masternode.conf. You can skip this steps and create it by yourself.
It have format:
Code:
ALIAS IP:PORT PRIVKEY TXHASH OUTPUTINDEX
One line - one masternode config
#################################################################################################################################################
STEP 3 : Configuring masternodes
1 - Go to "SCXMN1/data" folder
2 - Open "StarCashX.conf" in Notepad
3 - Type there:
Code:
port=PORT
masternode=1
masternodeaddr=IP:PORT
masternodeprivkey=PRIVKEY
4 - Replace PORT with port for your Masternode 1, IP:PORT with your external white ip and the same port for you Masternode 1
5 - Replace PRIVKEY with masternode private key you generated with "masternode genkey" in controller wallet for Masternode 1
6 - Save it and repeat process for Masternode 2 and Masternode 3.
STEP 4 : Starting masternodes
1 - Now you can start all your masternodes with "startmn1.cmd", "startmn2.cmd" and "startmn3.cmd"
2 - Go to controller wallet, check that your coins in Masternode 1, 2 and 3 addresses have at least 15 confirmations.
3 - Go to Masternodes tab and switch to the "My Masternodes"
4 - Press "Start All"
Don't be afraid to running PoS on controller wallet. It's do not damaged your masternode transactions because all masternode coins will be excluded from PoS.