Shekel Masternode setup guide (made simple)

in shekel •  7 years ago 

This Guide will help you to setup Shekel Masternode.

Local wallet

  • Create a new receiving address for Masternode collateral (25,000 shekel).
    On the menu click on "Receive", then in label section give it a name ( I used MN01 ). Once you done, click on Request payment. Your wallet will generate an new address. Send 25,000 shekel to this address (no more or no less). wait for 5 conformation.
  • Now click on tools and then Debug console.
    In Debug console we will generate genkey by typing masternode genkey and output of 25,000 collateral by typing masternode output. Save both genkey and output, you will need that latter on.

VPS setup

Enter the following command 1 by 1.

First lets create swap so we don't run out of memory.

fallocate -l 1500M /mnt/1500MB.swap
dd if=/dev/zero of=/mnt/1500MB.swap bs=1024 count=1572864
mkswap /mnt/1500MB.swap
swapon /mnt/1500MB.swap
chmod 600 /mnt/1500MB.swap
echo '/mnt/1500MB.swap none swap sw 0 0' >> /etc/fstab

Now lets update the VPS and install the packages.

apt-get update
apt-get upgrade -y
apt-get install wget nano unrar unzip libboost-all-dev libevent-dev software-properties-common -y
add-apt-repository ppa:bitcoin/bitcoin -y
apt-get update
apt-get install libdb4.8-dev libdb4.8++-dev -y
apt-get install libzmq3-dev libminiupnpc-dev -y

wget https://github.com/shekeltechnologies/JewNew/releases/download/1.3.0.0/shekel-Ubuntu16.04-1.3.0.zip

unzip shekel-Ubuntu16.04-1.3.0.zip
rm shekel-Ubuntu16.04-1.3.0.zip
chmod +x shekel-cli shekeld
mv shekel-cli shekeld /usr/local/bin/
cd
shekeld

Last command will output a rpcuser, rpcpassword and masternodeprivkey. I strongly recommend that you change all that in conf file by typing,
stop the wallet shekel-cli stop
edit the conf file nano /root/.shekel/shekel.conf

rpcuser=xxxxxx
rpcpassword=xxxxxxxxxx
rpcport=5501
listen=1
server=1
daemon=1
maxconnections=250
masternode=1
externalip=xxx.xxx.xx.xxx:5500
masternodeaddr=xxx.xxx.xx.xxx:5500
masternodeprivkey=88xbxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
addnode=45.77.136.172
addnode=45.32.17.133
addnode=209.250.251.59
addnode=122.46.217.199

After you done editing exit the conf file by CTRL+X and hit Y + ENTER to commit your changes.
Now start the wallet by typing shekeld .
You need to wait till blockchain is fully synced. You can check it by typing shekel-cli getinfo .
While VPS is syncing lets edit Masternode conf file in local wallet.

On local wallet

click on Tools, then click on Open Masternode Configuration file .
Once the conf file is open, close the wallet.
Add the following in conf file.

Format: alias IP:port masternodeprivkey collateral_output_txid collateral_output_index

Edit the line according to your own ( alias, IP, privkey, output )

Example: mn1 127.0.0.2:5500 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0

Save the file and start your wallet again, wait till its finished syncing. Click on Masternode tab, If you do not see masternode tab, go to Setting > Options . In this window click on Wallet, check on the box next to Show Masternodes Tab & Enable coin control features. click ok to save the file. Now you should see Masternode tab. Highlight your MN and click on Start alias. It should ask for your wallet password. Enter your password, now your wallet status should show 'ENABLED'.
Congratulations, Your MN is running.
Verify that the MasterNode is enabled, go to your VPS and type shekel-cli masternode status .
Your output should look somthing like this.

{
"txhash" : "695f29e75cc64fghyd26ceee725a167e0d295jjje34bd0f392e221b8680c8433e230",
"outputidx" : 1,
"netaddr" : "144.202.46.237:5500",
"addr" : "collateral address ",
"status" : 4,
"message" : "Masternode successfully started"
}
You can see your Masternode on http://shekel.mn.zone .

Happy Masternode.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!