Newbies Guide to Setting Up a PIVX Masternode.

in #pivx7 years ago (edited)

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)

Sort:  

Thanks for sharing

good info. Resteemed

hey! I followed your guide but i'm not sure whether I succeeded or not!
"Run the command getinfo (./pivx-cli getinfo)"
the command is not working (Method not found (code -32601))

I also think I had to insert :51472 after the unique ip in this step?:
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.

Yes, the bind address and the masternodeaddr are the same public IP address. The second one getting the port appended.

./pivx-cli masternode status works for me!
(At least it works in a descendant of this software.)
This is from the CLI of the remote server.
My local GUI wallet already shows the master node running fine.

I also have an important question!
I'm running the masternode on my laptop. now let's say I go to work and connect to a different network (different IP), would the node still run? if not, what do I need to do to keep it running all the time?

As the actual IP address is part of the master node configuration I think you should (and probably have by now) consider the laptop configuration as a practice. Now you can go and do it on a remotely hosted server with a fixed IP address.

Thanks for the information. I am saving up for a pivx masternode. Proof of stake is going to play a major role in the future and pivx is a cheap way to enter into that playing field.

Very helpful and very easy guide. If a cat can do this, anyone can ;)
Thank you for sharing.

Man, I tried that but I had so many questions.
Do I need one computer to run each masternode?
Am I confused or when I configure my main wallet to the masternode it can't stake anymore?
Please, can some one help me?

Can't we just change the port and host several masternodes in one single VPS using the same IP?

I think you can!§ Please try it and let us know.

§ (Because I know that there are bunches of master nodes (not set up by me) running on different ports of VPSs on the same IP addresses, in another related coin.)

I hope that there aren't many newbies like me but I just find out the I can not have masternodes on my home net because the ISP do not provide dedicated IP address. There are VPN but not one, till now, that have this kind of service in Brazil.

Use vultr.com for masternodes. Great and cheap service

far from cheap. sure $5 a month is cheap BUT you get crap for your money. I get 5x what they offer in specs for $2 a month vs their $5 month service.
And far from great. You look at the reviews?
they are horrible! I really do not know why so many people recommend them see ... https://steemit.com/masternodes/@mrsray/planning-for-profitable-passive-income-in-2018-bepaidinbitcoin find out where to get real special deals for much better vps options in my masternode post

I wonder why PIVX decided to make masternodes stake 10,000 PIV? With a circulation supply 6x higher than Dash, wouldn't you suggest that the masternode stake is 6,000 PIV or lower?

Coin Marketplace

STEEM 0.20
TRX 0.12
JST 0.029
BTC 61604.80
ETH 3444.70
USDT 1.00
SBD 2.50