Menu
Logo

OMEGA NETWORK
MASTERNODE GUIDE

FOR UNIX

This section of the guide details the CLI (Command Line Interface) process of masternode set-up. The commands laid out in this section are to be interpreted as Unix (Linux/Mac) commands. Presently, the only way to set up a masternode on a remote Unix system is via CLI. masternode functionality via the GUI client is forthcoming.


PREREQUISITES

  • The wallet on your remote machine (hereafter referred to as the remote wallet) is running and fully synchronized with the network
  • The wallet on your local machine (hereafter referred to as the local wallet) is running and fully synchronized with the network
  • Your local wallet contains enough Omega to start the number of masternodes you intend to start (1000 per masternode)
  • The configuration for your local wallet is void of content*


*Can also contain minimal configuration:

rpcuser=EXAMPLE
rpcpassword=EXAMPLE 

SET-UP

The following section outlines commands to be run on your local machine.

  1. Change directory to the location of your omegad executable
  2. Generate a private key for your masternode; it is imperative to keep this safe (example private key given):
    ./omegad masternode genkey 
    - 5n4hHJr35nGJHgh2kHjgK6KGfmdgGhgr59hjHJfdHwqPtr9Br2g 
  3. Retrieve the receiving OMEGA address for your masternode (replace EXAMPLE with your chosen masternode name; example address given):
    ./omegad getaccountaddress EXAMPLE 
    - OTFF2JKYfLMAZUqXdqyCX7nUuryw7shZNp
  4. Send 1000 OMEGA to the masternode address you have just retrieved:
    ./omegad sendtoaddress "OTFF2JKYfLMAZUqXdqyCX7nUuryw7shZNp" 1000 "" "" false
    Be sure to enter this command accurately, otherwise your masternode may receive less OMEGA than intended.
  5. [OPTIONAL] Validate that your OMEGA has been received by the masternode address:
    ./omegad getreceivedbyaddress OTFF2JKYfLMAZUqXdqyCX7nUuryw7shZNp
  6. Add the details of your masternode to your Omega configuration file (open it in your favorite text editor)*:
    rpcuser=<EXAMPLE>
    rpcpassword=<EXAMPLE>
    rpcport=7778
    rpcallowip=127.0.0.1
    daemon=1
    server=1
    listenonion=0
    addnode=142.208.127.121
    addnode=154.208.127.121
    addnode=142.208.122.127
    listen=1
    staking=0
    port=7777
    masternode=1
    masternodeaddr=<remote machine IP address>:7777
    masternodeprivkey=5n4hHJr35nGJHgh2kHjgK6KGfmdgGhgr59hjHJfdHwqPtr9Br2g
    Replace the masternodeprivkey value with your own private key, generated in step 1. You may also replace the value of port to any arbitrary open port number.

    *The location of the omega.conf file differs from system to system:

    • On Linux, it generally resides at
      ~/.Omega/omega.conf
    • On Mac you can generally find it at
      /Users/[username]/Library/ApplicationSupport/Bitcoin/omega.conf
  7. Start your masternode:
    ./omegad masternode start <wallet password; if wallet is encrypted>
  8. [OPTIONAL] Verify that your masternode is up and running:
    ./omegad masternode list | grep <remote machine IP address>
    
    The command output should contain a masternode listing with the remote machine IP address.

For any further masternodes you may want to set up, follow the same procedure.