Multi Masternode on single iond.

This guide assumes you already have a built, configured and running masternode already present on the server or VPS

Memory Requirements: 512mb per daemon. (Can be acheived through swap file) Daemons at idle use little ram, but when staking can run up a bit.

Example: 5 masternodes on a 2gb vps would require a swap of at least 1gb (512 x 5= 2560mb)

*********************************************************************************

Expanding Swap
sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=2000
sudo mkswap /var/swap.img
sudo swapon /var/swap.img

Add A new User (For this example the user is name masternode2
sudo adduser masternode2
enter new password for user

add mn2 to sudoers file
sudo visduo

Scroll down a bit and add the following line under "# User Priviledge specification" below the root entry:

Root    ALL=(ALL:ALL) ALL
masternode2    ALL=(ALL:ALL) ALL

ctrl+x to exit
y to confirm save and exit

Make ion and .ion directories, copy the daemon and config.

sudo mkdir ~masternode2/ion
sudo mkdir ~masternode2/.ion
sudo cp ~/ion/src/iond ~masternode2/ion/iond
sudo cp ~/.ion/ion.conf ~masternode2/.ion/ion.conf

Log in as new user
Su – masternode2

edit the copied config file to prevent conflicts when running the daemon for the first time
cd.ion
sudo nano ion.conf

Change the following values to ports not in use (by any other ion wallet instances or other services, these ports must be unique for every masternode on the same VPS or Server)
RPCPORT=
PORT=

Remove the following lines from the file
masternode=1
mnconflock=0
masternodeaddr=
masternodeprivkey=

ctrl+x to exit
y to confirm save and exit

Now we can start the daemon and generate the masternode address and key as you normally would. Once the key has been generated edit the ion.conf file and add the removed lines back in and update with the new information.

Cd ion

Sudo ./iond
./iond getaccountaddress <accountname>
./iond masternode genkey
./iond stop
cd
cd .ion
sudo nano ion.conf

Add the following lines
masternode=1
mnconflock=0
masternodeaddr=IPOFSERVER:PORT
masternodeprivkey=NEWMASTERNODEPRIVATEKEY

Ctrl+X to save and exit
y to confirm and exit

Now it’s time to start the daemon and masternode (after 16 confirmations)
Cd
cd ion
sudo ./iond
./iond masternode start

Have more questions? Submit a request

0 Comments

Article is closed for comments.