Syscoin 2.2 Beta 4 Multi Port Masternodes Setup assuming a Cold Install is working.
THIS IS FOR ADVANCE USERS ONLY, LIMITED SUPPORT WILL BE GIVEN
What we are going to do is run multiple instances of Syscoind on different data directories and port numbers.
First we need to edit existing configuration.
Log in to your VPS as your user and stop syscoind.
cd syscoin2
~/syscoin2/src/syscoin-cli stop
nano ~/.syscoincore/syscoin.conf
Add the following line to the config after rpcallowip=127.0.0.1
rpcport=9880
And before masternode=1
bind=IPaddress
port=18369
Like this
Save and close the file
Start syscoind
~/syscoin2/src/syscoind
Now we are going to set up a new data directory
Go to Home directory
cd ..
mkdir /home/john/datadir1
Create a Config file
nano datadir1/syscoin.conf
Add the normal syscoin config file but also include port, rpcport and bind as above but this time port=18368 and rpcport=9881 and bind=ipaddress and change the Masternode Key to a new one generated in QT.
Return to the QT and create a new line in Masternode.conf ie.
mn1.1 194.135.95.148:18368 MnKey TX
Save this and close and reopen QT
Return to your VPS
If a firewall is installed you need to allow the new port
We are going to start syscoind now with data dir set
~/syscoin2/src/syscoind -datadir=/home/john/datadir1
Now we need to install sentinel into the datadir
cd ~/datadir1
git clone https://github.com/syscoin/sentinel.git
cd sentinel
You need to set the syscoin_conf path
nano sentinel.conf
syscoin_conf=/home/john/datadir1/syscoin.conf
and make sure network=tesnet is not commented out and mainnet has a # in front of it. Like this
Save and close the file.
Finish Sentinel setup
virtualenv venv
venv/bin/pip install -r requirements.txt
Return to the QT and start the new Masternode
Back on the VPS
Setup Sentinel cronjob
venv/bin/python bin/sentinel.py
crontab -e
We need to add an additional line pointing to the new sentinel
THATS IT
To check Masternode status type
~/syscoin2/src/syscoin-cli -datadir=/home/john/datadir1 masternode status
For each additional instance start from
Now we are going to set up a new data directory
But using datadir2 etc and a different port and rpcport.