Shell script to install a XCZ Masternode on a Linux server running Ubuntu 16.04.
wget -q https://raw.githubusercontent.com/XChainZ/XCZ-Masternode/master/xchainz_auto.sh
sudo chmod +x xchainz_auto.sh
./xchainz_auto.sh
or
wget -q https://raw.githubusercontent.com/XChainZ/XCZ-Masternode/master/XCZ_masternode.sh
sudo chmod +x XCZ_masternode.sh
./XCZ_masternode.sh
Please wait until the Node is fully synced with the XCZ blockchain. To check the status enter below command.
xchainz-cli getinfo
When the Node is fully synced, enter the command below to check masternode status.
xchainz-cli getmasternodestatus
If your Node is not syncing add the following nodes:
addnode=159.69.47.244:14815
addnode=5.181.48.139:14815
addnode=37.120.190.8:14815
addnode=116.203.206.24:14815
addnode=173.249.41.92:14815
addnode=207.180.233.149:14815
addnode=195.201.25.161:14815
addnode=195.201.25.161:14815
addnode=195.201.25.161:14815
addnode=195.201.25.161
addnode=88.198.119.136:14815
addnode=164.68.116.197:14815
addnode=45.77.227.153:14815
addnode=78.46.226.63:14815
addnode=91.194.90.15:14815
addnode=144.91.70.209:14815
addnode=118.27.30.70:14815
addnode=80.211.191.33:14815
addnode=45.32.194.84:14815
Use nano to open the xchainz.conf file
# cd
# nano .xchainz/xchainz.conf
Copy the masternodeprivkey value as you will need this later for the Privkey field in the desktop wallet's masternode.conf file.
exit the file (Ctrl-X)
wget -q https://raw.githubusercontent.com/XChainZ/XCZ-Masternode/master/UpdateXCZ_mn.sh
sudo chmod +x UpdateXCZ_mn.sh
./UpdateXCZ_mn.sh
After the MN is up and running, you need to configure the desktop wallet accordingly. The steps are as follows:
- Open the XChainZ Coin Desktop Wallet.
- Go to RECEIVE and create a New Address: MN1
- Send 1000 XChainZ to MN1.
- Wait for 15 confirmations.
- Go to Tools -> "Debug console - Console"
- Type the following command: getmasternodeoutputs
- Within the installed XChainZ application directory on your operating system, open the masternode.conf file (e.g., for mac: nano "Library/Application Support/XChainZ/masternode.conf")
- Add the following entry:
Alias Address Privkey TxHash Output_index
Alias: MN1
Address: VPS_IP:PORT (XCZ port = 14815)
Privkey: Masternode Private Key from earlier
TxHash: First value from Step 6
Output index: Second value from Step 6
- Save and close the file.
- Go to Masternode Tab.
- Click Update status to see your node. If it is not shown, close the wallet and start it again. Make sure the wallet is unlocked.
- Open Debug Console and type:
startmasternode "alias" "0" "MN1"
xchainz-cli getinfo
xchainz-cli mnsync status
xchainz-cli masternode status
Also, if you want to check/start/stop XChainZ , run one of the following commands as root:
Ubuntu 16.04:
systemctl status xchainz #To check the service is running.
systemctl start xchainz #To start XChainZ service.
systemctl stop xchainz #To stop XChainZ service.
systemctl is-enabled xchainz #To check whether XChainZ service is enabled on boot or not.