Newbies Guide to Setting Up a PIVX Masternode.

I found this great little guide to talk through how to set up a PIVX Masternode. With PIVX getting lots of attention and massive gains in the last week, I thought this may interest you. Please note I did not write this guide, and you may find the original at this link

PIVX MASTERNODE GUIDE

However, for ease, i thought some of you may like to view it here. Good luck

This will be an re-organization of s3v3nh4cks guide to setup masternodes.

//====================================================================

First the basic requirements:
-10,000 PIV
-A main computer(Your everyday computer browsin', game playing' computer)
-Masternode Server(The computer that will be on 24/7)
-A unique IP address for EACH masternode
(For security reasons, you're gonna need a different IP for each masternode you plan to host)

The basic reasoning for these requirements is that, you get to keep your PIV in your local wallet,
and host your masternode remotely, securely. These inscructions will be made for hosting 2 masternodes, but
with a little common sense, you can expand these ideas for as many as you want!

For this guide, I'm going to refer to your main computer's wallet as the main wallet, and the masternode(s) wallet as the masternode wallets.
I will also be simulating the install using a Ubuntu server using the command line. If your using pivxd, all commands should be proceeded by ./pivx-cli .

  1. Using the main wallet, enter the debug console and type the following command twice:
    masternode genkey (This will be the masternode's privkey. We'll use this later...)
    (If you're only setting up one masternode, this will only be used once.)

  2. Using the main wallet still, enter the following command twice:
    getaccountaddress chooseAnameforyournode

  3. Still in the main wallet, send 10,000 PIV to (both) adresses. Make sure this is 100% only 10,000; No less, no more.

  4. Still in the main wallet, enter the command into the console:
    masternode outputs (This gets the proof of transaction of sending 10,000)

  5. Still on the main computer, go into the PIVX data directory, defualty in Windows it'll be %Appdata%/PIVX.
    Find masternode.conf and add the following line(s) to it:

    FORMAT: ALIAS IP:51472 MASTERNODEPRIVKEY TRANSACTIONHASH INDEX
    USAGE: <Name of Masternode(Use the name you entered earlier for simplicity)> < Unique IP address>:51472 <The result of Step 1> <Result of Step 4> <The number after the long line in Step 4>

Substitute it with your own values and without the "<>"s

  1. Still on the main computer, open the pivx.conf file (Find it or use the edit the config file in the PIVX-qt client under "Tools"). Make it look like this:

    rpcuser=long random username
    rpcpassword=longer random password
    rpcallowip=127.0.0.1
    listen=0
    server=1
    daemon=1
    logtimestamps=1
    maxconnections=256
    Save it, close and restart the wallet.

  2. Now on one of the masternodes, find the PIVX data directory here.(Linux: ~/.pivx). Open the pivx.conf file and make it look like this:

    rpcuser=long random username
    rpcpassword=longer random password
    rpcallowip=127.0.0.1
    listen=1
    server=1
    daemon=1
    logtimestamps=1
    maxconnections=256
    masternode=1
    externalip=your unique public ip address
    bind=your unique public ip address
    masternodeaddr=your unique public ip address
    masternodeprivkey=Result of Step 1
    Make sure to replace rpcuser and rpcpassword with your own.

  3. Close and restart this masternode wallet.

  4. Repeat steps 5 and 6 for each masternode you need.

  5. Now, you need to finally start these things. Use the appropiate commands:
    If you have 1 masternode: masternode start-alias alias (Make sure wallet is unlocked)
    2+ Masternodes: masternode start-many

If you did it right, you should see something like this:

             {
                   "overall" : "Successfully started 2 masternodes, failed to start 0, total 2",
                   "detail" : {
                      "status" : {
                         "alias" : "mn1",
                         "result" : "successful"
                     },
                      "status" : {
                         "alias" : "mn2",
                         "result" : "successful"
                     }
             }

Done.

//===================================================================

How do I know if its working?

Use the following command to check status:
masternode status

You should see something like:
{
"vin" : "CTxIn(COutPoint(masternode output, index
), scriptSig=)",
"service" : "ip:51472",
"pubkey" : "masternode address",
"status" : "Masternode successfully started"
}

If not keep reading.

Once enabled, you should see it start to see the time online increase, if not, its probably not up.

//====================================================================

COMMON ISSUES:

  • Your masternode's wallet isn't synced.
    Run the command getinfo (./pivx-cli getinfo)
    Look at the block number, it should be or close to the "Last Block" @ http://178.254.23.111/~pub/DN/DN_masternode_payments_stats.html2

    ===FIX====
    Add the following lines to your pivx.conf:

    addnode=s3v3nh4cks.ddns.net
    addnode=coin-server.com
    addnode=178.253.23.111
    addnode=158.69.238.245
    addnode=23.25.245.220
    addnode=164.132.151.99
    addnode=91.105.108.239
    addnode=188.72.112.133
    addnode=94.177.196.136
    Also try deleting the folders: blocks, chainstate and database. And redownload them or use this: https://www.dropbox.com/s/vhmo42g7ik3jgf3/_Chain-Backup-535500.zip?dl=0

    • Masternode runs then goes missing
      You might be hitting resource limits.
      Try checking available memory and confirming you have atleast 1gb free(Linux VPS based).

//=====================================================================

If you need anymore help find me slimjim on the forum or slack, and I'll do my best to assist. Theres also many other helping hands out there. Credit to s3v3nh4cks for the original guide.

Thanks s3v3nh4cks for helping me and allowing me to help others

-slimjim(beastty)

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now