Digitalcoin Forum

Digitalcoin is an open source digital currency. Learn more.

You are not logged in.

Announcement

DigitalCoin now has a new ecosystem! You can help to make the network stronger by leaving a DGC wallet running. Check if your country has a node : https://chainz.cryptoid.info/dgc/#!network (Click Geo-location)

#1 2018-07-10 00:08:37

Nexxus
Member
Registered: 2018-07-09
Posts: 1

Digitalcoin Hot/Cold Masternode Set Up Instructions

Digitalcoin Hot/Cold Masternode Set Up Instructions with Windows Wallet and Ubuntu VPS Server

This guide will walk you through setting up a Digitalcoin Masternode Using a Windows wallet and Ubuntu VPS Server. For help and questions, visit the Digitalcoin Discord. If you find an error in this document, please report so I can get that fixed.

Prerequisites:
-Windows Wallet installed and synced on a local computer
-Ubuntu  16.04 VPS Server with at least 1 core and at least 1GB RAM
-Putty, to connect to vps server
-10,001 DGC

Step 1: Set Up Windows Wallet
-Go to https://digitalcoin.tech/ and download the latest Windows Wallet for you system.
-Extract files and run the wallet. Wait for it to fully sync with the network. This will take time, be patient.
-After wallet it synced, it is recomended that you encrypt your wallet. DO NOT LOSE YOUR PASSWORD or you will not have access to your DGC!

Step 2: Send DGC
-Navigate to the recieve tab. Here you will create a new recieving address. Under LABEL type MN01. Next click "REQUEST PAYMENT". (MN01 will be the name of your recieving adress as well as your alias for the masternode).
-Next send exactly 10,000 DGC to your new recieving adress. The 10,001 is to cover transaction fees.
-While you wait for the payment to confirm, open up a blank document to store some information we will be using shorty.
-Wait for 6 confirmations then navigate to your DEBUG CONSOLE located under the TOOLS tab.
-In the Console type "masternode genkey". This will create your masternodes Private Key. Copy this to your blank document.
-Next, type in console "masternode outputs".  Copy the output txid (long string of characters) and the output index (should be 1 or 0) to your blank document.
**For now, we are done with the windows wallet.

Step 3: Purchase Ubuntu 16.04 VPS Server and Connect with Putty.
-You will need to purchase an Ubuntu 16.04 VPS server with at least 1 core and at least 1GB RAM. There are many inexpensive companies that provide this service such as www.vultr.com and www.hetzner.com/ . Save your servers IP address to your blank document.
-Next, download putty at  http://www.putty.org/ and run. Enter your servers IP address in the host name box then click open. You may get a warning box the first time you connect, just hit yes and terminal will open.
-log into the VPS as root.

Step 4: Compile and Sync VPS Wallet
-If not already, connect to your vps server with putty and log in as root. Here you will be installing all dependencies and compiling the Digitalcoin wallet.
Enter the following commands 1 at a time:

sudo apt-get install -y git automake
git clone https://github.com/lomtax/digitalcoin.git
cd digitalcoin
sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository -y ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install -y build-essential libtool autotools-dev autoconf pkg-config libssl-dev
sudo apt-get install -y libboost-all-dev libdb4.8-dev libdb4.8++-dev libprotobuf-dev protobuf-compiler libevent-dev
sudo apt-get install -y libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools
sudo apt-get install automake
./autogen.sh
./configure
sudo make install
digitalcoind

**This will take a long time so leave it running, we will return to this terminal later. It may shut down a couple times durring initial sync, if this happens type digitalcoind again to restart the daemon.
-Next, Right click the top left section of your putty terminal and scroll down to open new session. Connect to your vps again as root. At the point, you should have two putty terminal sessions running.
-With terminal 2 we will be monitoring the wallet sync. Type the following commands in the new  terminal:
cd digitalcoin
digitalcoin-cli get info
-You should see something like this:

"version": 5000000,
  "protocolversion": 70208,
  "walletversion": 61000,
  "balance": 0.00000000,
  "privatesend_balance": 0.00000000,
  "blocks": 591908,
  "timeoffset": 0,
  "connections": 5,
  "proxy": "",
  "pow_algo_id": 1,
  "pow_algo": "scrypt",
  "difficulty": 6.22753939780883,
  "difficulty_sha256d": 0.0002441368997097015,
  "difficulty_scrypt": 6.22753939780883,
  "difficulty_x11": 0.0002441368997097015,
  "testnet": false,
  "keypoololdest": 1530518603,
  "keypoolsize": 999,
  "paytxfee": 0.00000000,
  "relayfee": 0.00001000,
  "errors": ""

-Keep checking this until blocks have fully synced with the network. Again this will take some time to fully sync.
-Next we will check the sync of the master nodes with:
digitalcoin-cli mnsync status
-Keep checking until it reads as follows, this will take serveral minutes:
"AssetID": 999,
  "AssetName": "MASTERNODE_SYNC_FINISHED",
  "AssetStartTime": 1530525053,
  "Attempt": 0,
  "IsBlockchainSynced": true,
  "IsMasternodeListSynced": true,
  "IsWinnersListSynced": true,
  "IsSynced": true,
  "IsFailed": false
-Now that it is fully synced, stop the wallet with:
digitalcoin-cli stop
-We can now close Terminal #2

Step 5: Set Up and Start Masternode
-Return to terminal #1, digitalcoind should no longer be running and you can once again type in ther terminal. We will be adding masternode information to the digitalcoin.conf file. Enter these commands:
cd /root/.digitalcoin
nano digitalcoin.conf
-This will automatically open digitalcoin.conf. Copy the information below to your blank document and fill in the required section then paste all of it into Putty:
rpcuser=xxxxxxxxxxxx
rpcpassword=xxxxxxxxxxxx
rpcallowip=127.0.0.1
rpcport=7998
listen=1
server=1
daemon=1
externalip=xxx.xxx.xxx.xxx:7999
masternode=1
masternodeprivkey=xxxxxxxxxxxxxxxx
masternodeaddr=xxx.xxx.xxx.xxx:7999

**create a unique username and password for the rpcuser and rpcpassword fields. Replace xxx.xxx.xxx.xxx with your vps IP adress for both externalip and masternodeaddr. paste your masternode private key from your windows wallet into masternodeprivkey section.
-After youve copied this to putty, Save changes exit by pressing CTRL+O -> ENTER -> CTRL+X
-In terminal type the following commands to start your wallet with the new information:

cd
cd digitalcoin
digitalcoind

-Again, you can monitor block sync and node sync with these two commands:
digitalcoin-cli getinfo
digitalcoin-cli mnsync status

Step 6: Return to Windows Wallet, Configure and Start Masternode
-Minimize your putty terminal session and return to you DGC Windows Wallet.
-Under tools, Open Wallet Configuration file. Add these 3 lines replacing rpcuser and rpc password with information used earlier in the VPS. Save and close file.

rpcuser=xxxxxxxxxxxx
rpcpassword=xxxxxxxxxxxx
rpcallowip=127.0.0.1

-Next, Under tools, Open Masternode Configuration file. Here we will add the information for your masternode. Copy and paste this line into the file, replace with your information from your blank document.

Alias VPS_IP_ADDRESS:7999 masternode genkey  outputtxid outputindex
Example:
MN01 240.xxx.xxx.xxx:7999 5JTphgscqwzpKuJ25yGFWxxxxxxxxxxxxxxxxxxxF6hS1Z8J5s 118710c69e7c915f8xxxxxxxxxxxxxxxxd30f1d17b6100142aac330e90 1

-Save file and close.
-Next shutdown and restart Windows Wallet. Wait for it to fully sync.
-Navigate to the wallet Masternodes Tab>My Masternodes. You should now see your masternode listed. RIght click it and select START ALIAS.
-You should see ther status of the masternode move into PRE-ENABLED state. With in 30 minutes you will see your masternode move to ENABLED
-To confirm your masternode started, return to your putty terminal and type:

digitalcoin-cli masternode status

-This should return with "Masternode Successfully Started"

CONGRATULATIONS! Your Digitalcoin Masternode is now running!

**This guide was written by NEXXUS for informational purposes only for setting up a Digitalcoin Masternode based off my experiences. If I get some extra time, I may try to do an automatic easy install script.

If you found this guide helpful and would like to tip in DGC:
DFXgSGY41HiXiEwaKmLEKA4adNzXaAJFFc

Last edited by Nexxus (2018-07-10 00:10:30)

Offline

Board footer

Powered by FluxBB

Design by Klocek.