Gravium

Fast. Secure. Comfortable.

Masternode Setup

If you are new to server hosting, start by familiarize yourself with Virtural Private Servers (VPS) and how to securely connect using SSH keys and operate from command prompt.

Once ready sa VPS from a provider of choice like DigitalOcean, Vultr, Linode, Scaleway, Time4vps etc. 
Recommended VPS size: 2GB RAM (if less its ok, we can make swap).
It must be Ubuntu 16.04 (Xenial).
Exactly 1000 GRV on your MN address of desktop cold wallet.

NOTES:
– gravium.conf file on LOCAL wallet MUST BE EMPTY! 
– masternode.conf file on VPS wallet MUST BE EMPTY! 
– PRE_ENABLED and WATCHDOG status are NOT issues, just restart local wallet and wait a few minutes.
– You need a different IP for each masternode you plan to host

Open your wallet on your desktop, click Receive, put your Label such as “MN1” then click Request and Copy the Address and Send EXACTLY 1000 GRV to this Address.

Wait for at least 15 confirmations then go to the tab at the bottom that says “Tools” and click at the top that says “Console” then run following command:

Masternode Outputs:

You should see one line corresponding to the transaction id (tx_id) of your 1000 coins with a digit identifier (digit). Save these two strings in a text file.

Example:
{
“6a66ad6011ee363c2d97da0b55b73584fef376dc0ef43137b478aa73b4b906b0”: “0” }

Note that if you get more than 1 line, it’s because you made multiple 1000 coins transactions, with the tx_id and digit associated.

Run the following command:

Masternode genkey

You should see a long key: (masternodeprivkey) EXAMPLE: 7xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

This is your masternode private key, record it to text file, keep it safe, do not share with anyone. This will be called “masternodeprivkey

Next, you have to go to the data directory of your wallet Go to wallet settings=> and click “Open masternode configuration file” You should see 2 lines both with a # to comment them out.

Please make a new line and add:

MN1 (YOUR VPS IP):11010 masternodeprivkey tx_id digit

Put your data correctly, save it and close.
Still on your local Gravium Wallet, click Settings and on Wallet tab check the option “Show Masternodes Tab” then save and restart your wallet.

Note that each line of the masternode.conf file corresponds to one masternode, if you want to run more than one node from the same wallet, just make a new line with new alias like MN2-MN3… and repeat steps.

Connect to your VPS:

Windows users will need an SSH client such as a program called putty to connect to the VPS For a guide of how to use putty to connect to a vps please use: HOW TO USE PUTTY

From the VPS Command Line:

We need to install some dependencies. Please copy, paste this one-line command and hit enter:

apt-get update;apt-get upgrade; apt-get install nano software-properties-common git wget -y;

Now Copy this one-line command to run the script into the VPS hit enter:

rm masternode.sh; wget https://raw.githubusercontent.com/juniormasters/gravium-docs/master/scripts/masternode.sh && chmod +x masternode.sh && ./masternode.sh

When prompted, enter your “masternodeprivkey” from before and hit enter.
You will be asked for your VPS IP:11010 and a few other questions.
The installation include the latest version of Gravium Wallet on VPS.
The installation should finish successfully in a few minutes. Ask for help in discord if it doesn’t.

Please note, the script will move graviumd and gravium-cli binaries to /usr/bin folder, so you don’t need to navigate to gravium/src or /bin folder anymore, you can simple run the commands without “./” on any place now.

After the script finishes, you will want to check that it is running properly.
Please type in:

gravium-cli getinfo

You will see wallet informations like version, blocks and connection, wait it for full sync then you can move to next step to start your masternode by local wallet.

Starting Your Masternode:

Go back to your desktop wallet, to the Masternode tab. You need to wait for VPS to be full synced with network, you can check on your VPS by:

gravium-cli getblockcount

(needs to the same block number as explorer to be in sync – check at: explorer.gravium.io )

NOTE: If the Masternode tab isn’t showing, you need to click settings, check “Show Masternodes Tab” save, and restart the wallet If your Masternode does not show, restart the wallet.

Now select the Masternode ALIAS you just setup and click START ALIAS and confirm it.
Your masternode should be now up and running!
You can check the masternode status by VPS and typing:

gravium-cli masternode status

If your masternode is running it should print “Masternode successfully started”.

You can also check your MN status by local wallet – tools – console, just type:

masternode list full XXXXX

(Where XXXXX is yours first 5 character of TX_ID or VPS IP).

Your status on Masternode tab should show as ENABLED after 10-30 minutes.

If you have any question feel free to ask for our support at Discord

– If you put wrong Privkey or VPSIP:PORT and get an error, you need edit the .conf file with the correct data with:

nano /root/.graviumcore/gravium.conf

and restart daemon with:

gravium-cli stop
graviumd -daemon

If get error: incorrect rpcuser or rpcpassword (authorization failed) you need to kill the process first) with: pkill -9 graviumd and then edit the .conf file

Then save and exit using CTRL+X, Y and Enter, and restart daemon with:

graviumd -daemon

Now test with:

gravium-cli getinfo  or  gravium-cli getblockcount

– If after start alias and when check with gravium-cli masternode status on your VPS isn’t showing as “Masternode successfully started”, go to your data folder of local wallet and delete files: mncache.dat and mnpayments.dat, restart local wallet, wait full sync and start the alias again.

– If you get an error that file does not exist, it may be that the script failed to build and we need to trace back the problem. Contact our support in discord.

en_USEnglish
de_DEGerman en_USEnglish