Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

How to setup a masternode on a (LINUX) VPS to earn rewards for supporting the RPICoin network,

...

  •  Write a guide for hosting an RPICoin masternode on Linux (Ubuntu 16.04 or 18.04).

Requirements

You need to meet the following requirements in order to setup a RPI Masternode

  • Make sure you have exactly 10.000.000 (10Million) RPI available as collateral

  • A main computer (Your personal laptop, computer, raspberry Pi etc…) to act as the “main control wallet”

  • Masternode Server (The computer that needs to be online 24/7) (Preferably: Linux distro).

  • Every Masternode needs to have a different IP address for EACH masternode
    (this mandatory to keep the network as decentralized as possible).

  • Make sure both wallets on Windows & Linux are fully synced, you can verify the latest blockheight at our explorer

The Operating System we use in this Tutorial

  1. We will use Windows 10 as the main (control) wallet which holds all the RPI coins.

  2. The Masternode will run on a Ubuntu Server 16.04 LTS or 18.04LTS for the VPS

Instructions

The main (windows) wallet will hold all RPICoins used to run the maternode, this way your funds are always in your control. If a hacker would hack your VPS (which is the masternode) they can’t do anything with the information available, the coins are stored on your peronsal computer and not on the VPS.

...

Code Block
createmasternodekey

This will be the masternode’s private key. Make sure you save this as we will use this later. (save the privkey)


2. Once again using your control wallet, save the address that will be generated by using the following command:

Code Block
getaccountaddress <Choose any name for your masternode>

Creates a wallet for your masternode you can name it MYNODE1 or whatever you want. (save the wallet address / name)

3. Again in the control wallet, send (EXACT) 10,000,000 RPI to the address that was generated in the previous step.

Code Block
languagebash
getmasternodeoutputs

This command outputs the Transaction ID of the .
Note: Make sure you send the collateral amount to the address previously generated in step 1
Note: Make sure you send EXACTLY 10000000 RPI in one transaction to that address (not more nor less).

4. On your computer (which is the control wallet) open up the following data directory:

Code Block
languagebash
Press the Windows key + R and type: %AppData%/RPICOIN
Find the masternode.conf file and add the following line to this file:
    <Name of Masternode(Use the name you entered earlier for simplicity)> <Server's IP address>:17000 <The result of Step 1> <Result of Step 4> <The number after the long line in Step 4 often 1 or 0 >
    Replace the "<>" symbols with your own values.
    
    Below is an example:
    RPINODE1 72.252.19.217:18000 892WPpkqbr7sr6Si4fdsfssjjapuFzAXwETCrpPJubnrmU6aKzh c8f4965ea57a68d0e6dd384324dfd28cfbe0c801015b973e7331db8ce018716999 1
    You can add multiple nodes to control them from your main wallet
   

Setting up the VPS Wallet

Install the latest version of the RPICoin wallet available from our GITHUB or Website

Code Block
languagebash
1. On DigitalOcean choose the cheapest VPS available, deplo y the machine and login via the Consoel (terminal) SSH
2. Now type the following commands (THIS IS ONE COMMAND LINE, JUST COPY AND PASTE THIS IN TO YOUR UBUNTU SHELL)

cd ~ && wget https://github.com/rpicoin/rpicore/releases/download/v0.4.1/rpicoin-0.4.1-x86_64-linux-gnu.tar.gz && tar -zxvf rpicoin-0.4.1-x86_64-linux-gnu.tar.gz && cd rpicoin-40.4.01/bin && 
./rpicoind -daemon && ./rpicoin-cli getinfo && rpicoin-cli stop && cd ~/.rpicoin/

Now edit the rpioin.conf file by using this command:
nano rpicoin.conf

    rpcuser=<long random username>
    rpcpassword=<longer random password>
    rpcallowip=127.0.0.1
    addnode=seed1.rpicoin.com
    addnode=seed2.rpicoin.com
    addnode=seed3.rpicoin.com
    addnode=seed4.rpicoin.com
    addnode=seed5.rpicoin.com
    addnode=seed6.rpicoin.com
    addnode=seed7.rpicoin.com
    addnode=seed8.rpicoin.com
    addnode=explorer.rpicoin.com
    server=1
    daemon=1
    maxconnections=128
    masternode=1
    externalip=<masternode's ip address>
    masternodeprivkey=<use the one that was generated in step 1>
    
    Make sure to replace rpcuser and rpcpassword with your own! Also, remove the ‘’<>’’ symbols.
    To exit the editor press CTRL + O then press enter and then CTRL + X.

3. Starting your masternode

    Start the things below in the following order:
    1.1 Start the daemon client in the VPS. Go back to your wallet directory: cd ~/rpicoin-0.4.1/bin
    
    1.2 Start the wallet with this command:
    ./rpicoind -daemon
    
    1.3 From the control wallet debug console:
    startmasternode alias false <mymnalias>
    Replace the <masternodealias> with the name of your masternode alias, without the brackets!
    The following should appear:
    “overall” : “Successfully started 1 masternodes, failed to start 0, total 1”,
    “detail” : [
    {
    “alias” : “<mymnalias>”,
    “result” : “successful”,
    “error” : “”
    }
    
    1.4 In the VPS wallet, start your masternode:
    ./rpicoin-cli startmasternode local false
    A message should appear saying: “masternode successfully started’’.
    
    Use the following command to check the status of your masternode:
    ./rpicoin-cli getmasternodestatus
    It will return a message similar to this:
    {
    “txhash” : “ 977163ac3f3da1052c5fe631d9b24ba2c19d666fa2b354e0ed0787123ce9af3d”,
    “outputidx” : 0,
    “netaddr” : “188.166.87.72:18000”,
    “addr” : “RfundQCUtX9zbGbScT5GKyjMPDfv6uQ9ZE”,
    “status” : 4,
    “message” : “Masternode successfully started”
    }

This message means that your masternode has been successfully created. 

In order to stop running your masternode on your VPS and deleting your masternode from your RPICoin core wallet, you have to do the following:

    Use ./rpicoin-cli stop in your VPS wallet to stop the wallet.
    On your control wallet, edit your %AppData%/RPICOIN/masternode.conf file and remove the MN1 masternode line entry. (or comment it out with a # in front of the line)
    Restart your control wallet.
    Your 10.000.000 RPI will now be unlocked or can be unlocked via coin-control

Support:
Our great community on Telegram is always willing to help each other out, If you have any problems with setting up your masternode you can join us on Telegram and we’ll help you out! .

...