Shell script to install an Hotchain Masternode on a Linux server running either Ubuntu 16.04 or 18.04.
Run it on a clean Ubunbtu. Use it at your own risk.
cd /root && killall -9 hotchaind ; rm -rf /usr/local/bin/hotchain* ; mv .hotchain .OldHotchainv1
rm -rf mn_install.sh
wget -q https://raw.githubusercontent.com/Hotchain-HOTX/mn-install/master/mn_install.sh
bash mn_install.sh
After the MN is up and running, you need to configure the desktop wallet accordingly. Here are the steps:
- Open the Hotchain Desktop Wallet.
- Go to RECEIVE and create a New Address: MN1
- Send 1000 HOTX to MN1. You need to send all 1000 coins in one single transaction.
- Wait for 1 confirmation.
- Go to Help -> "Debug Window - Console"
- Type the following command: masternode outputs
- Go to Tools -> "Open Masternode Configuration File"
- Add the following entry:
Alias Address Privkey TxHash Output_index
- Alias: MN1
- Address: VPS_IP:PORT
- Privkey: Masternode Private Key
- TxHash: First value from Step 6
- Output index: Second value from Step 6
- Save and close the file.
- Ensure the transaction at step 3. has at least 20 confirmations.
- Go to Masternode Tab. If you tab is not shown, please enable it from: Settings - Options - Wallet - Show Masternodes Tab
- Click Update status to see your node. If it is not shown, close the wallet and start it again. Ensure the wallet is unlocked.
- Select your MN and click Start Alias to start it.
- Alternatively, open Debug Console and type:
masternode start-alias "MN1"
- Login to your VPS and check your masternode status by running the following command:.
hotchain-cli masternode status
hotchain-cli mnsync status
hotchain-cli masternode status
hotchain-cli getinfo
Also, if you need to check/start/stop Hotchain, run one of the following commands as root:
systemctl status Hotchain #To check if Hotchain service is running
systemctl start Hotchain #To start Hotchain service
systemctl stop Hotchain #To stop Hotchain service
systemctl is-enabled Hotchain #To check if Hotchain service is enabled on boot