How to setup PIVX masternode on Ubuntu

Thu Jun 21 2018

How to setup PIVX masternode on Ubuntu

A masternode is a server on a decentralized network. It can be uses to complete unique functions which ordinary nodes can’t. It can be used for features like direct send/instant transactions or private transactions.

Because of their increased capabilities, masternodes typically require a sizable investment in order to run. But this is where incentivization comes into play, as masternode operators are rewarded by earning portions of block rewards in whatever given cryptocurrency they’re facilitating.

Masternodes are nodes running the same wallet software on the same blockchain to provide extra services to the network. These services include:

  • Anonymization increased privacy of transactions
  • Instant transactions
  • A decentralized governance
  • A decentralized budgeting system
  • Immutable proposal and voting systems.

This particular guide will walk you through the process of setting up a PIVX masternode in Ubuntu, either in a cloud server or your home computer.

Basic requirements to run pivx masternode

  • 10,000 PIV How do I obtain PIV?
  • A main computer (Your everyday computer) – This will run the control wallet, hold your collateral 10,000 PIV 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

Set up Control wallet

1. Generate Masternode private key

masternode genkey will create a private key for you

2. Generate address

getaccountaddress NAME_OF_MASTERNODE will create an address for you.

3. Fund the control wallet

Send 10,000 PIV to the address you generated in step 2 Be absolutely 100% sure that this is copied correctly. We cannot help you, if you send 10,000 PIV to an incorrect address.

4. Confirm sent

masternode outputs will give you proof of transaction of sending 10,000 PIV

5. Assign the wallet

Go to PIVX data directory %Appdata%/PIVX on Windows and ~ on 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>

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

Install the wallet in Ubuntu

6. Install wallet on Masternode Ubuntu

Install the latest version of the PIVX wallet onto your masternode. The latest version can be found here https://github.com/PIVX-Project/PIVX/releases

Latest as of Jun, 21 2018 Download PIVX Wallet v3.1.0.2

Execute the following commands one by one.

cd ~
wget https://github.com/PIVX-Project/PIVX/releases/download/v3.1.0.2/pivx-3.1.0.2-x86_64-linux-gnu.tar.gz
tar -zxvf pivx-3.1.0.2-x86_64-linux-gnu.tar.gz
cd ~/pivx-3.1.0/bin
./pivxd
CTRL+C
cd ~/.pivx
vim pivx.conf

then press i to go into insert mode and make the config look like this:

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

Press esc and :wq

Start your masternode

cd ~/pivx-3.1.0/bin
./pivxd

From the Control wallet debug console startmasternode alias false <mymnalias>

The following should appear:

&gt; &quot;overall&quot; : &quot;Successfully started 1 masternodes, failed to start 0, total 1&quot;,
&gt; &quot;detail&quot; : [
&gt; {
&gt; &quot;alias&quot; : &quot;&lt;mymnalias&gt;&quot;,
&gt; &quot;result&quot; : &quot;successful&quot;,
&gt; &quot;error&quot; : &quot;&quot;
&gt; }

7. Start the masternode

./pivx-cli startmasternode local false A message “masternode successfully started” should appear

8. check status

./pivx-cli masternode status You should see something like:

&gt; {
&gt; &quot;txhash&quot; : &quot;334545645643534534324238908f36ff4456454dfffff51311&quot;,
&gt; &quot;outputidx&quot; : 0,
&gt; &quot;netaddr&quot; : &quot;45.11.111.111:51472&quot;,
&gt; &quot;addr&quot; : &quot;D6fujc45645645445645R7TiCwexx1LA1&quot;,
&gt; &quot;status&quot; : 4,
&gt; &quot;message&quot; : &quot;Masternode successfully started&quot;
&gt; }

Congratulations! You have successfully created your masternode!

Now the masternode setup is complete, you are safe to remove “enablezeromint=0” from the pivx.conf file of the control wallet.

This article originally appeared on lightrains.com

Leave a comment

To make a comment, please send an e-mail using the button below. Your e-mail address won't be shared and will be deleted from our records after the comment is published. If you don't want your real name to be credited alongside your comment, please specify the name you would like to use. If you would like your name to link to a specific URL, please share that as well. Thank you.

Comment via email
Nikhil M
Nikhil M

Entrepreneur / Privacy Freak / Humanist / Blockchain / Ethereum / Elixir / Digital Security / Online Privacy

Tags Recent Blogs