Documentchain Masternodes

Masternodes store a copy of the entire blockchain, they are available whenever possible, they manage immediate cash (InstantSend) and they secure the network. In addition to mining, providing a masternode is another way to generate coins.

For the operation of a masterternode you need

Setting up a Masternode

1. In the wallet software "DMS Core" on your local computer

Open the Github website and copy the link to the latest Linux release to the clipboard. This will be used at "wget" below.

2. On the VPS

Connect with an SSH client to your Virtual Private Server and enter the following commands into the Linux console:

Adapt the configuration file dms.conf. You can freely assign "rpcuser" and "rpcpassword". "externalip" is the IP of the VPS followed by port 41319. You have previously created "masternodeprivkey" in the local wallet with the genkey command. "addnode" is possible, but not required. The addresses of some masternodes are hard-coded.

Example file:

rpcuser=dmsrpcuser
rpcpassword=MyPassword
rpcallowip=127.0.0.1
server=1
listen=1
daemon=1
maxconnections=125
masternode=1
masternodeprivkey=5VNdUDTqdh…
externalip=123.123.123.123:41319

3. "DMS Core" on your local computer

Go to the Transactions tab page and hover your mouse over the previously created 5000-coin Masternode transfer. A pop-up will show the number of recent confirmations for this payment:

Number of transaction confirmations

You must wait at least 15 confirmations before proceeding. On average, 15 confirmations take 90 minutes.

4. On the VPS

Use ./dms-cli mnsync status to verify that synchronization is now complete:

./dms-cli mnsync status

Please wait until "IsBlockchainSynced", "IsMasternodeListSynced", "IsWinnerListSynced" and "IsSynced" have the value "true".

5. "DMS Core" on your local computer

6. Set up automatic service start on VPS (optional)

Your provider will probably restart the VPS occasionally. To run dmsd automatically afterwards, you can create a service unit:

Example dms.service

[Unit]
Description=DMS service
After=network.target

[Service]
User=root
Group=root
Type=forking
ExecStart=/root/dms/dmsd -daemon
ExecStop=/root/dms/dms-cli stop
Restart=always
PrivateTmp=true
TimeoutStopSec=60s
TimeoutStartSec=10s
StartLimitInterval=120s
StartLimitBurst=5

[Install]
WantedBy=multi-user.target

7. Monitoring

Check the masternode status in your local wallet regularly. You should restart it, if the status is "NEW_START_REQUIRED". Check the VPS, if the status "MISSING" is shown.