Skip to content

XChainZ/XCZ-Masternode

 
 

Repository files navigation

XChainZ Masternode Setup Guide:

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)

Guide for UpdateXCZ_mn.sh:

wget -q https://raw.githubusercontent.com/XChainZ/XCZ-Masternode/master/UpdateXCZ_mn.sh
sudo chmod +x UpdateXCZ_mn.sh
./UpdateXCZ_mn.sh

Desktop Wallet

After the MN is up and running, you need to configure the desktop wallet accordingly. The steps are as follows:

  1. Open the XChainZ Coin Desktop Wallet.
  2. Go to RECEIVE and create a New Address: MN1
  3. Send 1000 XChainZ to MN1.
  4. Wait for 15 confirmations.
  5. Go to Tools -> "Debug console - Console"
  6. Type the following command: getmasternodeoutputs
  7. 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")
  8. 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

  1. Save and close the file.
  2. Go to Masternode Tab.
  3. 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.
  4. Open Debug Console and type:
startmasternode "alias" "0" "MN1"

Usage:

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%