TOR MASTERNODE GUIDE

About Tor Masternodes

Masternodes are basically computers(mostly VPSs) that run a non-GUI Kore wallet. These nodes are designed primarily to help support the network and also make decisions. The types of decisions they make are items such as mixing of coins, voting on budgets and budget funding, and locking transactions during certain send functions.

Some Educational Info about Masternodes

Understanding Tor Masternode Payouts

Masternodes compete (rotationally, evenly distributed across all online MNs) for 40% of the block reward on each block. It is impossible to guess how much Tor Masternodes will pay out at this time as we are a brand new chain that just recently implemented Masternodes. After a few months, we will have a better idea on what the Tor Masternodes will be paying and we will update this page. For now, the algorithm works like this:

(Number of coins staked * 0.0003) * .40 per block

Tor Masternode Setup Guide

STEP 1: Fund a QT Wallet Locally

You will need a Kore wallet on your local machine with atleast 500.1 Kore in your wallet.

STEP 2: Linux VPS Remote

You will need a Linux based VPS. We recommend Ubuntu 16 or later. Any VPS provider will do, but you can use a VPS service like Digital Ocean to quickly spin up a VPS in minutes.

Make sure you acquire your root username and password.

STEP 3: Root SSH Terminal

Open up an SSH connection to your VPS. If you have never used SSH before, we suggest YouTube for some how to tutorials.
At this point, you should be logged into SSH connected to your VPS ready to enter commands as a Root User at a command prompt.

STEP 4: Create Shell Script File

At the root command line run these:

sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install nano -y
sudo apt-get install git -y
nano test.sh

Now you're inside a text file editor
Copy all text from ONE of the TWO VPS system specs lines below...
Then paste it into the text editor to create a file named test.sh (text inside the asterisk's *s line)
Say Yes when asked if you want to paste

************************************************************************
If you have a VPS with 4GB of RAM or less use this code
************************************************************************
fallocate -l 4G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo $`\n/swapfile none swap sw 0 0` >> /etc/fstab
clear
#Install Dependencies
echo Dependencies installing ...
apt-get install software-properties-common -y
echo|apt-add-repository ppa:bitcoin/bitcoin
apt-get update && apt-get upgrade -y
sudo apt-get install -y libdb4.8-dev libdb4.8++-dev
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-all-dev libdb4.8-dev libdb4.8++-dev libminiupnpc-dev libzmq3-dev libqrencode-dev libsqlite3-dev libasound2-dev uuid-dev libuuid1 liblog4cplus-dev libcurl4-openssl-dev libspeex-dev libspeexdsp-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqt5webkit5-dev libavcodec-dev libavformat-dev libavutil-dev libsdl2-dev libgsm1-dev libopencore-amrnb-dev libopencore-amrwb-dev libswscale-dev libsdl1.2-dev libopus-dev libavdevice-dev libsndio-dev libjack-dev
git clone https://github.com/Kore-Core/KORE.git
cd KORE
echo Dependencies Finished installing.
echo Configuring Kore
echo clearing cache
sync; echo 3 > /proc/sys/vm/drop_caches
echo cache cleared
./autogen.sh
./configure
make install
echo Kore Configured

************************************************************************
If you have a VPS with more than 4GB of RAM use this code
************************************************************************
apt-get install software-properties-common -y
echo|apt-add-repository ppa:bitcoin/bitcoin
apt-get update && apt-get upgrade -y
sudo apt-get install -y libdb4.8-dev libdb4.8++-dev
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-all-dev libdb4.8-dev libdb4.8++-dev libminiupnpc-dev libzmq3-dev libqrencode-dev libsqlite3-dev libasound2-dev uuid-dev libuuid1 liblog4cplus-dev libcurl4-openssl-dev libspeex-dev libspeexdsp-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqt5webkit5-dev libavcodec-dev libavformat-dev libavutil-dev libsdl2-dev libgsm1-dev libopencore-amrnb-dev libopencore-amrwb-dev libswscale-dev libsdl1.2-dev libopus-dev libavdevice-dev libsndio-dev libjack-dev
git clone https://github.com/Kore-Core/KORE.git
cd KORE
echo Dependencies Finished installing.
echo Configuring Kore
./autogen.sh
./configure
make install
echo Kore Configured
*************************************************************************

press Ctl o -- not zero the letter o
press Enter
press Ctl x
press Enter
chmod +x test.sh
./test.sh

STEP 4a: Start Daemon & Configure Conf File

Start the kore daemon and save your masternode key and your onion address.
At the root command line run these:

kored --daemon
kore-cli masternode genkey (select/copy/save to your desktop the masternode key that generates here)
sudo kore-cli stop
cat ~/.kore/onion/hostname (select/copy/save to your desktop the onion address that displays here)

Now edit the conf file
At the command line enter this:

nano ~/.kore/kore.conf

In the screen that pops up copy and paste the text below between the ***s
You must change the line for RPCUSER & RPCPASSWORD to your own input deleting the *s.
Also use the Up and Down Arrow keys to navigate and delete our guide phrase and then paste the Masternode Key & Onion Address you saved to your desktop into the text editor to complete your settings


*************************************************************
server=1
daemon=1
rpcuser=***A_USERNAME_YOU_WANT_TO_USE**
rpcpassword=***A_PASSWORD_YOU_WANT_TO_USE**
rpcport=9932
rpcallowip=127.0.0.1
listen=1
staking=0
masternode=1
masternodeprivkey=***put your MN private key here***
masternodeaddr=***put your onion address here***
txindex=1
addrindex=1
addnode=73zwmk4bpsig4pme.onion
addnode=4aynkbwmoje6p27p.onion
addnode=hxgchjn2dom3teev.onion
addnode=hzvrfa5xa2qulysi.onion
addnode=hggmh3vhkjebz4j5.onion
addnode=gameldrtkm4u4ds2.onion
addnode=k75pshpf226ra65s.onion
addnode=zdwnbnrwty33uuev.onion
addnode=l4meqo3zi74h7edw.onion
addnode=k6a5ebhrkfxbwqvl.onion
addnode=bqr7zsfgpztd4m4q.onion
addnode=hvjjqjjajii2ycix.onion
addnode=bqr7zsfgpztd4m4q.onion
addnode=hzvrfa5xa2qulysi.onion
************************************************************

To exit out of the editor enter these commands:

- press Ctrl Key +o -- not zero, the letter o
- press Enter
- press Ctrl Key +x

Now at the root command line:

kored -reindex

Wait a few moments and then run

kore-cli getconnectioncount
kore-cli getinfo

Make sure you have connections and "blocks": are updating...

STEP 5: Go Back to Your Local Wallet

Your VPS is now ready... We are moving on to the local wallet on your local machine.
This next work is NOT on your VPS
Create a new incoming address to receive coins

STEP 6: Send Coins IN & TO Local Wallet

Now send 500 kore coins (+ network fee) coins to yourself by sending them to the address you just created in the local wallet at step 5

STEP 7: Copy RAW Transaction Locally

Wait for the 500 coin you sent from the local wallet to the local wallet in step 6 to confirm. Go to the transactions tab in the local wallet and select your transaction you just created in step 6. Right click and select copy raw transaction info.

STEP 8: Decode RAW TX

Go to Help >> Debug Window .... then select the Console tab.
In the console tab, enter the following without the ***s...

decoderawtransaction ***paste your transaction id here***
Press enter

Find your vout transaction of 500 coins and then look for the value of "n" right next to it. It should be a number between 0 and 9
Remember the value of n

STEP 9: Edit Masternode.conf for Local Wallet

Now edit your masternode.conf located inside your local /.kore/ folder add the following line at the bottom of the doc:

***masternodename*** ***%hostname%:10743*** ***masternode key*** ***500 kore tx id without the -000*** ***"n" value***

Do not keep the ***s, they are only to express entity separation in the example...
save and exit
This is an example below:
JediMasternode dfaslkuaha.onion:10743 dasadsfoifuhewq89kjdfspo adfsp98o32hodfsakjudfasuidfs 0

STEP 10: Start Masternode in Local Wallet

Restart your Local Kore wallet

Go to settings >> options >> select the wallet tab >> Check the Show Masternodes Tab >> Click Ok

On the left of the wallet, select the Masternodes tab... you will see your Masternode in the list under My Masternodes tab

Select your masternode you just created and click on "Start alias" follow the prompts... Congratulations, you now have a Masternode...

STEP 11: Check Status on Remote VPS

Let's go check to make sure your Masternode is running as expected... Log back into your VPS...

Enter this command:

kore-cli masternode status

You should see this:

"status": "Masternode successfully started"

If it is not running, you will see this:

"status": "Node just started, not yet activated... If you see this, then give it more time.
My first masternode took about 16 hours to start...

Thank you...
The Kore community is the core of the Kore Projects...
We cannot do any of this without you and we are grateful to have you amongst us as a community member...

FAQ

Q. I get an error "Could not allocate txin X for masternode"...

A: Your problem is *probably* that you’re staking. Turn off all staking and try again. You cannot be staking while setting up your masternode. If this is not the issue check:

  1. Is the transaction confirmed by the network and finalized?
    1. Are the coins mature?
  2. Is the transaction in the masternode.conf the correct transaction?
Q. I get "Not capable masternode: Hot node, waiting for remote activation" after starting the alias

It can take several hours for the activation to go through (up to 16 hrs) but as long as your wallets stay up to date on the blockchain and don’t get forked or freeze the node will activate.

Q. How much KORE will I get a day from running a masternode?

This is a loaded question because the rewards change based on the active stakes and thus the average change from day to day, to see the reward for the passed 24 hrs you can go to masternodes.online

I get "Invalid port detection" after editing my masternode.conf

You *probably* used the IP of the masternode instead of the onion address (as this guide says to use the onion address)