MGD Masternode Guide

Notice:The operations, commands, screenshots, etc. of this tutorial all performed under the test network environment, not the official network environment.

The test network and the main network are independent of each other, and the data is not connected. Please do not exchange coins with each other.


  • Familiar with the basics of the ubuntu operating system (installing software, editing and modifying files)
  • 1 server: need to have a separate public IP
  • Operating system: ubuntu 16.04
  • Recommended configuration: 1 core, 2G memory, 1Mbps bandwidth (minimum configuration: 1 core, 1G memory, 1Mbps bandwidth)
  • Cloud Server Security Group Policy needs to add the following TCP ports: 9442, 9443, 19442, 19443
  • 50000 MGD deposit

2. Specific steps

(1) Install MGD wallet on the server with a dependent environment
Sudo apt-get -y update
Sudo apt-get install -y git build-essential libtool autotools-dev autoconf

pkg-config libssl-dev libcrypto++-dev libevent-dev libminiupnpc-dev libgmp-dev
Sudo apt-get install -y libboost-all-dev libboost-dev
Sudo apt-get install -y software-properties-common python-software-properties
Sudo add-apt-repository ppa:silknetwork/silknetwork -y
Sudo apt-get update -y
Sudo apt-get install -y libdb4.8-dev libdb4.8++-dev
Sudo apt-get install -y libqrencode-dev

(2) Run the wallet, sync block
Note: The master node can only be built on the test network.

1.Local client installs the latest beta (wallet the version of the corresponding system, (Note: The following three versions are compiled client versions with interfaces)

Test Network Windows version:
Test Network Ubuntu version 16.04:
Test Network Mac:

2. Install the latest version of the wallet on the server

Method 1: Source code compilation and installation

If the server memory is lower than 2G, you need to create new virtual memory, otherwise the compilation will not function.

Increase virtual memory
Dd if=/dev/zero of=/swapfile bs=2M count=1024
#Start virtual memory
Mkswap /swapfile
Swapon /swapfile
Download compiled source
# Pull source
Git clone
#Switch directory
Cd MassGrid
Git checkout masternode
#Executing the build step
Deleting the newly created virtual memory.
Swapoff /swapfile
Rm /swapfile

Method 2: Download the compiled executable directly

Test Network Ubuntu 16.04 Server Edition:

Execute the following two lines of commands:
Tar -zxvf MassGrid_Ubuntu_Server.tar.gz

(3) Start MGD wallet core sync block data

The executable file generated after the wallet is compiled is located in the MassGrid/src directory.
Switch to the MassGrid/src directory and start the wallet

#Main network use:

#Test network usage:

./massgridd -testnet

View Log

Test network:
Tail -f ~/MassGridDataDir/testnet3/debug.log
Main network view:
Tail -f ~/MassGridDataDir/debug.log

Exit log view

Note: The log file will output the CMasternodeSync::ProcessTick — when the synchronization is not completed. If the synchronization is completed, the loading ends.

3. Create a new wallet address locally, recorded as the mnaddress

Open the local wallet (“Tools” -> “Debug Console”) and execute the following command:

getaccountaddress mnaddress

4.Transfer 50,000MGD to the new wallet mnaddress address

5.Import the newly created address to the server

./massgrid-cli imporadtress “newly cretaed mnaddress address”

6.Open the server wallet configuration file massgrid.conf

(By default /MassGridDataDir/directory,Note:indicate your home directory)

Add the following lines:




testnet=1 “#Only add when the test network is built. Do not fill it on the main network “

7.Restart the wallet connected to the server

1)Close the wallet core

Method 1:

./massgrid-cli stop

Method 2: If the mconfiguration file is modified after the wallet core is started, Method 1 might not work. The wallet can be closed with the kill command as follows:

ps -ef | grep massgridd | grep -v grep | cut -c 9–15 | xargs kill

2)Restart Command


8.Server generated genkey

enter the following command:

./massgrid-cli masternode genkey

9.Server must obtain de txid from the Step 3 transaction and corresponding txindex with the following command:

./massgrid-cli masternode outputs

10. Open the server configurate file: massgrid.conf

Insert the following command:


masternodeprivkey=genkey (from step 8)

externalip=Your server’s IP address

11. Modify the masternode.conf configuration file

1. The configuration file is located in the main network, look in the directory for /MassGridDataDir/ and in the test network it is located at /MassGridDataDir/testnet3/

2. The port number is 9443 in the main network,and in the test network it is 19443

Open server masternode.conf file

Main Network

vi ~/MassGridDataDir/masternode.conf

Test Network

vi ~/MassGridDataDir/testnet3/masternode.conf

Note:each space needs to be separated by a spacebar

(Content Description: MGD Address Server IP: Port Number genkey txid txindex)

2) After the completion of the configuration, restart the wallet

3) Local configuration file

Configure the same data in the masternode.conf of the local wallet. And open the file locally as follows:

Adding content is exactly the same as the server masternode: (Note: the file content is one line, separated by spaces)

12.Restart the local wallet

1)Check if the local wallet has a master node page. If not, please do the following: “Settings” -> “Options” -> “Wallet” -> Check the main node page to confirm and restart the wallet;

2) Wait for synchronization to complete
3) Start the masternode
Click on the local wallet “masternode” -> “masternode” -> select the corresponding entry -> Click “Start masternode” at the bottom, t the corresponding node status changes to “PRE_ENABLE”

4) After a period of time (within 1 hour), the masternode status will automatically change to “ENABLE”

5) View the revenue of the main node

(Note: The above tutorial operations, screenshots, etc. are all performed under the test network environment)