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
RestartSec=15
PrivateTmp=true
TimeoutStopSec=60s
TimeoutStartSec=10s
StartLimitInterval=120s
StartLimitBurst=5

[Install]
WantedBy=multi-user.target

7. Possibly mining

Does the computer have at least 2 virtual CPU and sufficient system resources? If so, then you can use the wallet to mine coins:

dms/dms-cli setgenerate true 1

For a rented server, please ask yourself if the provider agrees. If you renting an expensive server, mining on 1 or 2 CPU will probably be ok. At a VPS for $1 each month, the provider will not calculate with a 100% CPU usage.

Tip: Weak mining. The parameter setgenerate true -2 or -3 pauses after each calculation. The system uses only a small part of one virtual CPU.

8. 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.


Suitable VPS for Masternodes

Some experience to choose a server for your Masternode.

We have tried some server providers with masternodes. Especially for Documentchain, but also with other Altcoins during the planning phase. Basically, one can say that 256 MB of RAM are not enough. Initially, these small VPS worked, but with increasing blockchain size, they went offline.

System requirement in our experience is 1 vCPU and 0.5 GB RAM. SSD or HDD is usually offered from 10 GB, which is quite sufficient. If you are renting a cheap server, please make sure that a upgrade option is offered.

As operating system we have installed Ubuntu 16.04 and in one case 18.04, because only this version was available. Both work.

Tested VPS

Provider VPS approx. 1) ok
deinserverhost.de KVM with 0,5 GB RAM € 1,95
hetzner.com CX11 with 2 GB RAM € 2,96
hetzner.com CX21 with 4 GB RAM, 2 vCPU € 5,83
hostus.us US/EU Special 2 with 0.7 GB $ 1,33 3)
hostus.us HK AP Special with 0.5 GB
Hong Kong and Singapore
$ 2,91 3)
ionos.com Cloud S with 0,5 GB € 1 - $ 2
Serverdiscounter 2) Virtual Nano with 0,2 GB € 1,00
strato.de V30 with 8 GB RAM, 4 vCPU € 12,00
virmach.com Micro+ with 0,2 GB RAM $ 1,25
virmach.com Value+ with 0,5 GB RAM $ 2,50

✔ works with masterternode
❌ unsatisfactory

1) Prices per month, we have paid. For current price information see provider page.
2) Problems after setup, wrong payment allocation, no upgrade possibility.
3) Special price for annual payment via affiliate link. Tip: For other orders you can try "TOPPROVIDER" as a coupon code.