Post
Topic
Board Announcements (Altcoins)
Merits 2 from 1 user
Re: [ANN] :: COPICO ::CRYPTO E-MARKET PLATFORM {SWAP FROM COPICO TO CAZ IN PROGRESS}
by
c1791
on 20/04/2018, 08:12:09 UTC
⭐ Merited by bulala (2)

Cazcoin Masternode Setup Guide

This is a complete guide to setup Cazcoin (CAZ) masternode on Ubuntu Vps.
Here I will show how to setup Cazcoin masternode on Ubuntu 16.04 x64 (1Gb Ram).

First of all download latest Cazcoin wallet on your local PC and let it sync.
Once it is fully synced then encrypt the wallet.
Then  backup your wallet.
You need to have 50000.01 CAZ in your wallet.

MAIN WALLET ON YOUR LOCAL PC
First of all unlock your wallet, go to Settings > Unlock wallet
To setup your Main Cazcoin wallet go to Tools > Debug Console
Then type
Code:
masternode genkey
You should see private key of your MN like this 5rMisfma41fmqn5bzaTddJHGa8Rss718ZneDtZ7CyxZxFziq3xS

save the output in a text file. It will be referred as YOUR_PRIVATE_KEY

Then type
Code:
getnewaddress MN1
Then copy the returned address and send exactly 50000 CAZ to this address.

Wait for 1 confirmation, then go to the debug console and type
Code:
masternode outputs
You should see one line corresponding to the transaction id (tx_id) of your 5000 coins with a digit identifier (digit) like this "b4dc2cc10d06e622bb8710dc9513ce67d657310eb5ec2a7e2537159e44199dc9": "0"

Save these two strings in a text file.

Note that if you get more than 1 line, it's because you made multiple 50000 coins transactions, with the tx_id and digit associated

Next, go to Tools > Open masternode configuration file
Open the masternode.conf file and type at the bottom:
Code:
MN1 your_vps_ip:17350 YOUR_PRIVATE_KEY tx_id digit

Save it and close it.

Note that each line of the masternode.conf file corresponds to one masternode.

Restart your main wallet.

MASTERNODE WALLET ON VPS
If you don't have enough RAM, create 2–4GB of swap memory
Code:
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

For work with text files we need install nano
Code:
sudo apt-get update
sudo apt-get install nano

If you have a clean system, you need to install several dependencies
Code:
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-all-dev curl
sudo apt install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
sudo apt-get install libminiupnpc-dev

Then we need download Cazcoin wallet and run cazcoind
Code:
wget https://github.com/copicogithub1/cazcoin/releases/download/v.1.0.0/cazcoin-1.0.0-x86_64-linux-gnu.tar.gz
tar -xvzf cazcoin-1.0.0-x86_64-linux-gnu.tar.gz
rm cazcoin-1.0.0-x86_64-linux-gnu.tar.gz
mv cazcoin-1.0.0 cazcoin
cd cazcoin/bin
./cazcoind

After see "Warning: Make sure to encrypt your wallet and delete all non-encrypted backups after you verified that wallet works!" press Enter
wait 15 seconds and then press CTRL+C (exit from cazcoind)

Open Cazcoin wallet configuration file
Code:
nano ~/.cazcoin/cazcoin.conf

and insert
Code:
rpcuser=youusername
rpcpassword=strongpassword
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
masternode=1
masternodeprivkey=YOUR_PRIVATE_KEY

When done making changes and entries,

press CTRL+O
press ENTER
press CTRL+X

Now start your masternode wallet
Code:
./cazcoind -daemon

Wait few mins for your wallet to download the blockchain. You can check the progress with the following command :
Code:
./cazcoin-cli getblockcount

The block number has to catch up with the latest on the blockexplorer.

STARTING THE MASTERNODE
Go back to your MAIN wallet on local PC
First of all unlock your wallet and go to the Masternode tab.

You need to wait for at least 6 confirmations in order to start the masternode. Select the line corresponding to the masternode.
Click "Start-alias".
Click YES to confirm
After getting the "Successfully started masternode."
Your masternode should now be switch to status ENABLED.

If you get an error, check the cazcoin.conf on both vps and local wallet as well as the masternode.conf to be sure everything is as said above.

CHECKING THE MASTERNODE STATUS
You can check the masternode status by going to the masternode wallet on your VPS and typing:
Code:
./cazcoin-cli masternode status

If your masternode is running it should print "Masternode successfully started".

If you have a firewall on your VPS, you need to open the 17350 port.