This guide is to show you how to setup a Cold node. Never ever run a so called Hot node. Hot nodes hold the collateral coins in their local wallet. If an attacker manages to access the system, they will be able to grab all your coins very easily. Cold nodes do not hold any coins, they are all in your local wallet. This means the masternode itself doesn’t hold any coins.

Choose A VPS for your Masternode

If you are looking for a reliable hoster, we suggest using Vultr VPS. It is so easy to use them that a how to on getting a VPS up with them.

There are many VPS hosts, so feel free to choose any one you like.
For this guide, we are going to use Vultr VPS and full disclosure:
Register and Sign in to Vultr.  https://www.vultr.com
Register and Sign in to DigitalOcean.  https://www.digitalocean.com

I. Deploy New Server

 

II. Select Server Location

 

III. Select Server Type: Ubuntu 16.04

 

IV. Select Server Size: 1CPU – 1024MB Memory.

 

V. Type Host Name (MNx), Server Qty and Deploy now

VI. You will get a confirmation email once your VPS activated.
Save your VPS IP, Username and Password from Control Panel in notepad for further steps.

 

Just to be sure you understand what needs to be done first:
1. Get a VPS up and running.
2. Have a local wallet that is also fully synced.
3. Have the correct amount of coins you need + some spare coins for TX fees.

This guide assumes that now you have VPS Server and your wallet is fully synced also have Masternode Collateral Amount.

Notes: Things IN CAPTIAL have to be replaced by you with the correct things. (if any)
Commands to copy and paste are in grey box.
LOCAL means your desktop wallet, REMOTE means the VPS.
We setup 1 masternode, if you want to setup more, you just have to rinse and repeat the steps.

You can easy get lost with all the stuff you have to copy and paste.
so i suggest you use below skeleton in your desktop notepad to do work easily:

Label: * YOUR ADDRESS LABEL *
VPS IP: * YOUR VPS IP ADDRESS *
Collateral Address: * YOUR COLLATERAL ADDRESS *
Masternode Private Key: * YOUR MASTERNODE KEY *
Transaction ID : * YOUR TX ID *
Transaction Index : * TX INDEX *

MN conf line: * MN1 YOUR_VPS_IP_ADDRESS:33588 MASTERNODE_PRIV_KEY TX_ID TX_INDEX *

You can copy it as many times as needed and fill the data in you collect during the progress.

 

Collateral Sending from CDMCOIN Wallet

Open your wallet and go to:
Settings -> Options -> Wallet -> check: Show Masternode Tab
Also, check Activate Coincontrol Features.
You will need to restart the wallet.

I. Have a local wallet that is also fully synced.


II. Click on Tools, then Debug console


III. You will find the command line at the bottom of the console

Enter the following command and press Enter.

masternode genkey

You will see a long string of numbers and letters.

Please copy/paste this string to the notepad file on your Desktop (Masternode Private Key). This is the key you will need to verify your Masternode later in the process.

Enter the following command and press Enter. This will generate your new Masternode’s receiving address

getaccountaddress mn1

The generated address will now be labeled as MN1. Please copy/paste this string to the notepad file on your Desktop (label section). This address will be the one that you will send your 500,000 CDM to, and the one where all future payments will go.

If you want to setup more masternodes just repeat the steps so you end up with several addresses for the total number of nodes you wish to setup. Example: For 10 nodes you will need 10 addresses, label them all.


IV. Send 500,000 CDM as Collateral to your “mn1” address

From wherever you currently hold your 500,000 CDM (exchange, another CDMCOIN wallet, even a different address in the same wallet), please send your CDM to your new “mn1” Masternode receiving address in your wallet.

IMPORTANT: You must send EXACTLY 500,000 CDM to your “mn1” address, no more, no less, to be eligible to run a Masternode!

Once you have initiated the transaction, you must wait for 20 confirmations so your address is eligible to be associated with your new Masternode. This usually takes about 20-30 minutes on average. While Waiting for the Collateral to get 20 confirmations, do VPS section below.

 

CDMCOIN Masternode VPS Installation


V. Download PuTTY and Fill your VPS Details to Connect to the VPS

Download PuTTY to connect to the server. Go to the PuTTY Download Page and select the appropriate MSI installer for your system. On Mac or Linux you can ssh directly from the terminal – simply type ssh [email protected]<server_ip> and enter your password when prompted.

PuTTY will be used to connect via SSH to systems.

Double-click the downloaded file to install PuTTY, then run the app from your Start menu. Enter the IP address of your VPS in the Host Name field and click Open. (copy/paste from email)


VI. Fill that user and password to PuTTY

Copy the default password VULTR sent you in email and right-click
inside the PuTTY window / press Enter
TIP : Right-clicking is how you paste into a PuTTY console window.
When you right-click paste, your password won’t be visible in the window.
Just trust that it pasted and hit enter.

Enter the following commands EXACTLY (in this order) to set up your firewall:
Please note: Make sure you enter the code in this order! If you do not, the program will not work! If need be you can disable your firewall by entering (as root): ufw disable.

Now we will configure the firewall to only allow ports 22 for SSH and for the masternode

sudo ufw allow 33588

You will see a message saying that Rule added.


VII. CDM VPS remote wallet install, enter the following commands:

wget https://cdmcoin.org/cdminstall.sh && chmod +x cdminstall.sh && ./cdminstall.sh

Your system is now installing CDM node and is busy completing synchronisation with the blockchain. We now need to enter the masternode private key generated in the previous step.

Edit the configuration file using the following command:

sudo nano .condominium/condominium.conf

Make sure to check your Masternode Privkey matches with your key in notepad file. (masternodeprivkey is the value you got from “masternode genkey” in debug window)

Press Ctrl + X to close the editor and Y and Enter save the file to exit the editor

 

Remember to check blockcount if VPS catching blocks

condominium-cli getblockcount

 

if not syncing. follow this procedure:

Go to your wallet-qt and check peers list (tools – peers list) and select one ip from the list. With that ip do the follow command at VPS

condominium-cli addnode "ip" onetry

 

Example :

condominium-cli addnode 45.59.145.159 onetry

 

Check now if VPS already downloading blocks with the command. and if yes give it time now to catch last block number

condominium-cli getblockcount

 

Use the following command single line command for faster node sync, if you face any wallet sync issues or blockcount showing 0 from longtime.

apt install unzip && systemctl stop condominium.service && rm -rf .condominium/backups && rm -rf .condominium/blocks && rm -rf .condominium/chainstate && rm -rf .condominium/sporks &&rm -rf .condominium/zerocoin && rm  .condominium/peers.dat && wget https://cdmcoin.org/bootstrap.zip && unzip bootstrap.zip && systemctl start condominium.service

 

VIII. Get the info for your Masternode
Go to your CDM Wallet
MENU : Tools / Debug console
In the debug console type :

masternode outputs

It will display your Transaction ID (TX_ID) and Transaction Index
(TX_Index). The outputs will look something like this:
#Respond: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” : “0”,
# Your TXID Should be : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Your TXIndex Should be: 0
Copy and paste the outputs into your temporary notepad file (TX_ID and TX_Index).


IX. Setup Masternode Configuration File

MENU : Tools > Open Masternode Configuration File
You will see an example of the Masternode configuration line. Leave it there.
On a new line, copy/paste all the info you’ve gathered so far in this format:

MNx Your_VPS_IP_Address:33588 Masternode_Priv_Key TX_ID TX_Index

Save & Close Masternode Configuration File.

TIP : To run more than one Masternode, add a new line for each one like this.

MN1 Your_VPS_IP_Address:33588 Masternode_Priv_Key TX_ID TX_Index
MN2 Your_VPS_IP_Address:33588 Masternode_Priv_Key TX_ID TX_Index


X. Setup Wallet Configuration File. MENU : Tools / Open Wallet Configuration File

Copy/paste the following information into your new notepad file.

rpcuser=XXXXXX
rpcpassword=XXXXXX
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
maxconnections=24
masternode=1
masternodeprivkey=XXXXXXXXXX
externalip=XXXXXXXXXX:33588

Customize this file by replacing the four fields in XXXXXXXXXXXXX.
Please note: rpcuser and rpcpassword can be anything, but it cannot have any special characters such as $,#,!, only letters and/or numbers. The masternode privkey is the one that you generated in your wallet and copied to your notepad file earlier, and externalip is your VPS’s IP.
Leave the rest alone.
TIP : If you have more than one Masternode,
then add an extra line for each masternode at the bottom of the other text:

externalip=Your_Other_VPS_IP:33588

Save and Close Wallet Configuration File. Restart your CDM Wallet.
Wait before you do anything else with the wallet.
It will need to resynchronize with the network.
While you wait for that…


XI. Start your Masternode in your CDM Wallet


MENU : Masternodes
CLICK : ‘Start Missing’ -OR- Select new Masternode and click ‘Start Alias’
You should see : “MNx successfully started.”
TIP : Do not restart any masternodes you already have running or you will reset the rewards and end up waiting a long time to get paid again.

Congratulations, Your Masternode is now running successfully.

 

If you get stuck, have questions or you just want to meet some other cool CDMCOIN Community, check out the Discord and Telegram

To check block count

condominium-cli getblockcount

 

To check masternode sync status

condominium-cli mnsync status

 

To check masternode status

condominium-cli masternode status

 

To check the service is running

systemctl status condominium.service

 

To start the masternode in VPS

systemctl start condominium.service

 

To stop the masternode in VPS

systemctl stop condominium.service

 

To check service is enabled or not

systemctl is-enabled condominium.service

 

If you get stuck, have questions or you just want to meet some other cool CDMCOIN Community, check out the Discord and Telegram

If you are facing wallet sync issues.  follow this procedure:

Go to https://chain.cdmcoin.org/connections and copy any ip address from Peers list.

Open Tools – Debug Console

addnode "ip" onetry

 

Example :

addnode 45.59.145.159 onetry

 

Check now if wallet downloading blocks with the command. and if yes give it time now to catch last block number

getblockcount

 

If you are facing sync issues on VPS.  follow this procedure:

Go to your wallet-qt and check peers list (Tools – Peers list) or https://chain.cdmcoin.org/connections and copy any ip address from Peers list and select one ip from the list. With that ip do the follow command at VPS

condominium-cli addnode "ip" onetry

 

Example :

condominium-cli addnode 45.59.145.159 onetry

 

Check now if VPS downloading blocks with the command. and if yes give it time now to catch last block number

condominium-cli getblockcount

 

To Speedup you wallet or vps node sync. Please check Bootstrap File process.

 

If you get stuck, have questions or you just want to meet some other cool CDMCOIN Community, check out the Discord and Telegram

Open your CDMCOIN Wallet.

Step 1 = Tools -> Open Masternode Configuration File

Step2 = add # before your MN config for unlock last collateral

#mn1 127.0.0.1:33588 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0

Step 3 = Save masternode conf and restart wallet

Step 4 = Send new collateral transaction, if you have more than 1 MN you can send multiple collaterals in 1 transaction.

Step 5 = Open wallet debug console and type

masternode outputs

there will have 2 param each result. (param is txhash and txoutputid).

Step 6 = Open masternode conf then replace txhash and indexid base on masternode outputs.

Step 7 = Remove # on your mn config to start your masternode

Step 8 = Restart wallet and start your masternode on Masternodes Tab by using Start alias

Step 9 = check masternode status on vps

condominium-cli masternode status

 

if you got error on masternode status, please check block count

condominium-cli getblockcount

and compare to https://chain.cdmcoin.org for get the last block. if they are same, check your masternode status again.
if still get an error try to restart vps wallet

 

condominium-cli stop

wait 1 – 2 minute then check masternode status again.

 

If you get stuck, have questions or you just want to meet some other cool CDMCOIN Community, check out the Discord and Telegram

Bootstrapping is the process for speeding up the syncing of your wallet. Syncing your wallet is downloading all transactions from when it was made until now. You can bootstrap your wallet to give it the file instead of it downloading slowly (syncing).

This is a dynamic backup and updates constantly. [Updated: 05 July 2019]

Click Here to download bootstrap file for faster wallet sync.

***Don’t forget to backup your wallet.dat file if you are having coins in your wallet.***

If you want to bootstrap on WINDOWS manually or for MAC

Open up your wallet location on your C:\ Drive. The default location will be:

For Windows C:\Users\YOURUSERNAME\AppData\Roaming\Condominium

For Mac ~/Library/Application Support/Condominium

eg cp -a /Users/<username>/Downloads/bootstrap.zip/* /Users/<username>/Library/Application Support/Condominium/

The contents of the folder and the zip contents should be very similar. Simply drag the contents of the zip into that folder and override the existing files.
Once this is done, close out the folders and zip if it is still open and open up the wallet again. There will be hours left worth of syncing to do but it will be much faster at this point.
Never send coins to your wallet until it is fully synced. If you have sent to a unsynced wallet you will not lose your coins, you will just give yourself a scare until your wallet has fully updated.

 

Use the following command single line command for faster vps node sync or if you face any wallet sync issues or blockcount showing 0.

apt install unzip && systemctl stop condominium.service && rm -rf .condominium/backups && rm -rf .condominium/blocks && rm -rf .condominium/chainstate && rm -rf .condominium/sporks &&rm -rf .condominium/zerocoin && rm  .condominium/peers.dat && wget https://cdmcoin.org/bootstrap.zip && unzip bootstrap.zip && systemctl start condominium.service

 

To check wallet blockcount sync status

condominium-cli getblockcount

 

If you get stuck, have questions or you just want to meet some other cool CDMCOIN Community, check out the Discord and Telegram