Testnet: Automatic Masternode Setup Guide

From Genesis Network Wiki
Revision as of 22:20, 25 February 2019 by Ssowellsvt (talk | contribs)
Jump to navigation Jump to search

This page describes exactly how to create a Genesis Masternode with using the official automated script.


First and foremost, you must make sure these requirements are met for setting up a masternode. Really, you need all of them.

Local Setup

Create a Text File and Setup in this Manner

Private Key: 

Generate a Private Key for Your Masternode

  1. Open up the console on the full-node wallet by click Help > Debug Window > Console
  2. Enter the following into the console and press enter
masternode genkey
  1. The result is your Private Key - Add to your text file under "Private Key:"

Create a Public Address for Your Masternode

  1. Still having the console open, enter the following and press enter
getaccountaddress "masternode01"
  1. Feel free to rename "masternode01" to a name of your choosing
  2. The result is your public address - Add to your text file under "Address:"

Transfer your 1 GENX Collateral

  1. Still having your console open, enter the following and press enter
    sendtoaddress "address" 1
    Make sure to replace "address" with the actual address in your text file

Verify & Obtain Transaction Info

  1. Still having your console open, enter the following and press enter
    masternode outputs
    You may need to wait for 1 confirmations (~1 minutes)
  2. The result is your transaction ID and output
    • Add the text string to your text file under "Transaction:"
    • Add the single digit output to your text tile under "Output:"

VPS Setup

For this tutorial we'll use a DigitalOcean droplet.

Create VPS

  • After signing up at DigitalOcean, click Create > Droplet
  • Recommended safe size VPS is 2GB RAM, 2 Core CPU. Recommended minimum size VPS is 2GB RAM, 1 Core CPU
  • Anything lower than 2GB RAM, 1 Core CPU could result in issues with compiling and will be very slow
  • Future upgrades of the network will require more robust VPS's
  • This example we will use the recommended minimum of 2GB and 1 Core CPU
  • After creating the VPS, check your email for login information

Login to Your VPS

  • Download, install and open PuTTY
  • Get the IP/User/Pass from your email (DigitalOcean)
  • Input the IP address into the PuTTY window and press Open
    • Alternatively, you can also save your VPS in PuTTY by putting in a name of your choice and pressing Save. Double click the saved session to open
    • Security warning will come up, simply press Yes
  • After the security warning, type your User/Pass from the email, then it will prompt you to change your password
    • Your password will not actually show anything on the screen while you're typing or if you copy/pasted. This is fine, just type and hit enter
  • Pro-tip: Right-click is paste in terminal (VPS)

Auto Script

Run Automatic Script

  • This script assumes you are a root user or logged in with sudo access.
  • This will create a new user called "genesis". Type the following
bash <(curl -sL genesisnetwork.io/mn-installer)
  • Follow instructions carefully! Please report issues in the Discord
  • Default values are found in [brackets] and pressing enter will select the default value. As this is for TESTNET only, make sure you change the following
    • Branch: masternodes
    • Port: 17233
    • Configure for Mainnet: No
  • Your masternode private key will be in the "Private Key" portion of your text file


Edit Your Local Masternode Conf File

  • Head back to your local PC where you have your Genesis full-node wallet installed.
  • Depending on your OS, locate the Genesis Masternode configuration file, open with Notepad, nano or your favorite text editor
    • Windows — %appdata%Genesis\testnet3\masternode.conf
    • Linux — ~/.genesis/testnet3/masternode.conf
    • MacOS — ~/Library/Application Support/Genesis/testnet3/masternode.conf
  • Follow the example and use your text file to fill out the information:
masternode01 IP:17233 PrivateKey Transaction Output
  • Example
MN01 WDi7PZVAhW85qdGcDGfDvZr8ruUDYC3j7kB4mD47vbXqg2HWKe 8ef75988f9dc08ac345effdeabf0cc0d5ed992c781dde1e08f674af776be76b4 1
  • Now save your text file, close your Genesis full-node wallet and reopen it

Start Your Masternode!

  • Once you reopen your full-node wallet, let it sync fully
  • Head over to the Masternodes tab
  • You should see your masternode inside the list under "My Masternodes" with the status "MISSING"
  • Right click the entry and select "start-alias"
  • Your masternode should go into "PRE-ENABLED" state
  • Wait between 10-30+ minutes and the masternode should go into "Enabled"

That's it!! Congratulations, your testnet masternode is ready to go!