Multiple Masternodes setup GuideStep-by-step guide for starting multiple masternodes (3 masternodes in this example)
Requirements - Digitalprice wallet running on your local computer with at least 25000 Digitalprice coins for every masternode
- white static IP with open ports for masternodes
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 "DPMN1" there
3 - Copy file "digitalprice-qt.exe" in folder "DPMN1"
4 - Create in folder "DPMN1" new folder "data"
5 - Copy file "blk0001.dat" and folder "txleveldb" in created folder "data"
6 - Rename "digitalprice-qt.exe" to the "dp-mn1.exe"
7 - Press Win+R and type "cmd" and press Enter
8 - Now type there:
Code:echo start dp-mn1.exe -datadir=./data > %homepath%/Desktop/startmn1.cmd
9 - Move file "startmn1.cmd" from Desktop to the "DPMN1" 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 25000 Digitalprice
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 "DPMN1/data" folder
2 - Open "digitalprice.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.
Linux MN setup for DigitPrice (Good for most MN dash clones)Go to you windows wallet
Help> Debug Window> Console
type > getnewaddress 0
save that address in notepad
type in console> masternode genkey
save that PrivKey to notepad as well
Sent to your newly created address exactly 25000 coins
Until they confirm we go to the vps
Create new user for safety-dont run wallets as root
>adduser DP (type a password 2 times and remember it!)
>su DP
>cd
__________________________________________________________
OPTIONAL STEP IF YOU RUN ON SMALL VPS (SWAP CREATION)
>sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=2048
>sudo mkswap /var/swap.img
>sudo swapon /var/swap.img
Make the swap file persist after reboot
>sudo chmod 0600 /var/swap.img
>sudo chown root:root /var/swap.img
>sudo nano /etc/fstab
Add this line at the end of the file:
/var/swap.img none swap sw 0 0
Save and Exit
END OF OPTIONAL STEP
___________________________________________________________
Open firewall Ports -except your machine is wide open, not good
>cd
>sudo ufw allow OpenSSH
>sudo ufw allow 9990
>sudo ufw default deny incoming
>sudo ufw default allow outgoing
>sudo ufw enable
(Repeat 2nd line to last line for as many ports as you need to open)
OK, and now we are ready to compile the deamon
>cd
>sudo apt-get install git
>git clone
https://github.com/cpozzer/DigitalPrice.git>sudo apt-get -y update && sudo apt-get -y install build-essential libssl-dev libdb++-dev libboost-all-dev libcrypto++-dev libqrencode-dev libminiupnpc-dev libgmp-dev libgmp3-dev autoconf autogen automake libtool
>cd DigitalPrice
>cd src
>sudo make -f makefile.unix
When compile finishes you 'll get a file called digitalpriced.
Wait for it to compile (it will take some time, dot worry)
By now, lets hope that coins are in your windows wallet and confirmed-
If yes, go to Console and type> masternode outputs
You should see a TXIDhash and a number (0 or 1) beside it. Copy both to your beloved notepad
Run the deamon
> ./digitalpriced
You ll get an error, dont worry its good-it prepared the date folder and waiting for you to setup conf.
type> cd
>cd .dprice
sudo nano digitalprice.conf
type>
>port=ThePortWeOpenedBefore
>masternode=1
>masternodeaddr=TheVPSip:ThePortWeOpenedBefore
>masternodeprivkey=ThePriveKeyWeCreatedInTheBegginingAndItsSavedInYourNotepad
Save and Exit
type> cd
>cd DigitalPrice
>cd src
>./digitalpriced
Now deamon runs, and you should wait for it to sync.
Anytime you wanna check its sync status you can type> ./digitalpriced getinfo
While it syncs we go back to out Windows wallet and close it.
Browse to C:\Users\USERNAME\AppData\Roaming\DPrice (or wherever you set the data directory)
And open masternode.conf file. If its not there, create it.
In one line type the following>
ALIAS TheVPSip:ThePortWeOpenedBefore ThePriveKeyWeCreatedInTheBegginingAndItsSavedInYourNotepad TXIDhashItoldYouToSaveInNotepasAsWell TheNumberBesidesTXIDhash
example: MN1 130.12.12.43:9990 54Tg826tFd5sJLsRXyonhv314T8YtgCqKfPLvtt82NeZu9PSe 1dsli119af3994dj987dd22a185ae98djh8050879wedy9872016cd8dh908 1
Save and Exit
If your VPS wallet is synced
Open Your windows Wallet (Controller Wallet)
Go to Console and type> masternode start-alias MN1
MN1 is the name i chose before. If you choose other name(ALIAS) for your masternode, replace the above command.
You should get : Masternode succesfully started
Go to your Masternodes Tab in Windows Wallet. Press the Update button and it shoud say: Masternode Is Running
After 10 mins go to your VPS.
>cd
>cd DigitalPrice
>cd src
>./digitalpriced masternode status
To check if they have communicated.
It should say Masternode Started succesfully
Thats it!
fewwww...
kopykat
Notes.
This sign (>) means you type after that.