Skip to content

Masternode Configure Guide

ProxyNode edited this page Nov 22, 2018 · 1 revision

Introduction

This guide is for a single masternode, on a Ubuntu 16.04 64bit server (VPS) running headless and will be controlled from the wallet on your local computer (Control wallet). The wallet on the the VPS will be referred to as the Remote wallet. You will need your server details for progressing through this guide.

First the basic requirements:

  • 10,000 PRX
  • A main computer (Your everyday computer) – This will run the control wallet, hold your collateral 2,000 PRX and can be turned on and off without affecting the masternode.
  • Masternode Server (VPS – The computer that will be on 24/7)
  • A unique IP address for your VPS / Remote wallet

(For security reasons, you’re are going to 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.

Configuration

Note: The auto zPRX minter should be disabled during this setup to prevent autominting of your masternode collateral. BEFORE unlocking your wallet, you can disable autominting in the control wallet option menu.

  1. Using the control wallet, enter the debug console (Tools > Debug console) and type the following command: masternode genkey (This will be the masternode’s privkey. We’ll use this later…)

  2. Using the control wallet still, enter the following command: getaccountaddress chooseAnyNameForYourMasternode

  3. Still in the control wallet, send 2,000 PRX to the address you generated in step 2 (Be 100% sure that you entered the address correctly. You can verify this when you paste the address into the “Pay To:” field, the label will autopopulate with the name you chose”, also make sure this is exactly 2,000 PRX; No less, no more.) – Be absolutely 100% sure that this is copied correctly. And then check it again. We cannot help you, if you send 2,000 PRX to an incorrect address.

  4. Still in the control 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 PRX data directory, by default in Windows it’ll be %Appdata%/PROXYNODE or Linux ~

Find masternode.conf and add the following line to it: <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>

Example: MN1 31.14.135.27:51472 892WPpkqbr7sr6Si4fdsfssjjapuFzAXwETCrpPJubnrmU6aKzh c8f4965ea57a68d0e6dd384324dfd28cfbe0c801015b973e7331db8ce018716999 1

VPS Remote wallet install

  1. Install the latest version of the PRX wallet onto your masternode. The lastest version can be found https://github.com/ProxyNode/proxynode

Go to your home directory:

cd ~

From your home directory, download the latest version from the PIVX GitHub repository:

wget https://github.com/ProxyNode/proxynode/archive/v1.0.0.zip

Unzip and extract:

tar -zxvf Linux.zip

Go to your PRX bin directory:

cd Linux/bin

Configuration Cont. cd ~/.proxynode vi ~/.proxynode/proxynode.conf

rpcuser=long random username rpcpassword=longer random password rpcallowip=127.0.0.1 server=1 daemon=1 logtimestamps=1 maxconnections=256 masternode=1 externalip=your unique public ip address masternodeprivkey=Result of Step 1

esc wq!

Start your masternode

startmasternode alias false <alias>

where is the name of your masternode alias (without brackets)

The following should appear: “overall” : “Successfully started 1 masternodes, failed to start 0, total 1”, “detail” : [ { “alias” : “”, “result” : “successful”, “error” : “” }

startmasternode local false

masternode status

{ “txhash” : “334545645643534534324238908f36ff4456454dfffff51311”, “outputidx” : 0, “netaddr” : “45.11.111.111:51472”, “addr” : “D6fujc45645645445645R7TiCwexx1LA1”, “status” : 4, “message” : “Masternode successfully started” }

Congratulations! You have successfully created your masternode!