Skip to content

@scolcoin scolcoin released this Apr 4, 2019 · 5 commits to master since this release

How do I setup a masternode (Icolcoin)?

Use the following instructions to setup a masternode for a Icolcoin (ICOL) on Ubuntu Server 16.04.

Make sure that you have the following requirements.

  • Required amount of coins to setup the masternode.
  • A wallet to store your coins.
  • A server or VPS.

The instructions are split in three sections.

Setup the control wallet (1/2)

Open your wallet and wait until the wallet has downloaded the complete blockchain.

  • Go to “Tools”.
  • Click “Debug console”.
  • This is the console where you will execute all commands.

Create a masternode private key.

|| masternode genkey

  • Example output

75eqvNfaEfkd3YTwQ3hMwyxL2BgNSrqHDgWc6jbUh4Gdtnro2Wo

Show your collateral address.

|| getaccountaddress "MN1"

  • Example output

Cad4xtgdwf7c5y45ruy5MWtVY43zYMCvva

Keep note of the masternode private key and the collateral address.

********* Setup the VPS ***********

Ubuntu Server 16.04.

Update your Ubuntu machine.

sudo apt-get update
sudo apt-get upgrade

Install the required dependencies.

sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libboost-all-dev libboost-program-options-dev
sudo apt-get install libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler unzip software-properties-common

Install Berkeley DB.

sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev

Create a directory
mkdir bin src
cd bin
wget https://github.com/scolcoin/icolcoin/releases/download/Ubuntu1604/icolcoin.tar.gz

Extract the tar files.
tar -xzvf icolcoin.tar.gz

chmod +x icolcoind icolcoin-cli icolcoin-qt icolcoin-tx

Install the daemon

sudo mv icolcoind icolcoin-cli icolcoin-tx /usr/bin/
cd

Create the config file.

mkdir ~/.icolcoin
nano ~/.icolcoin/icolcoin.conf

Paste the following lines in icolcoin.conf
#--- RCP
rpcuser=rpc_icolcoin
rpcpassword=69c863f8756d3dae95df454a1
rpcallowip=127.0.0.1
#----
listen=1
server=1
daemon=1
maxconnections=64
staking=1
#----
masternode=1
masternodeprivkey=REPLACE_WITH_MASTERNODE_PRIVATE_KEY
externalip=REPLACE_WITH_EXTERNAL_IP_OF_VPS
#----
masternodeaddr=35.229.82.15:7574
masternodeaddr=35.236.105.67:7574
masternodeaddr=35.237.239.72:7574
masternodeaddr=40.118.238.149:7574
masternodeaddr=40.71.0.28:7574
masternodeaddr=40.83.221.67:7574
masternodeaddr=82.197.210.238:7574
masternodeaddr=86.57.193.186:7574
masternodeaddr=104.196.197.221:7574
masternodeaddr=34.73.249.231:7574
masternodeaddr=35.229.82.15:7574
masternodeaddr=35.183.180.12:7574
masternodeaddr=137.135.123.45:7574
masternodeaddr=34.73.112.34:7574
#---- Nodes
addnode=104.196.197.221:7574
addnode=104.42.212.117:7574
addnode=104.42.5.193:7574
addnode=104.42.58.38:7574
addnode=137.135.123.45:7574
addnode=138.186.189.243:7574
addnode=149.28.166.56:7574
addnode=167.86.89.180:7574
addnode=168.205.148.43:7574
addnode=170.254.3.171:7574
addnode=178.238.233.225:7574
addnode=179.13.106.45:7574
addnode=18.216.92.199:7574
addnode=18.222.201.92:7574
addnode=18.231.83.148:7574
addnode=181.115.11.8:7574
addnode=181.49.82.156:7574
addnode=181.61.208.151:7574
addnode=186.112.206.203:7574
addnode=186.30.33.101:7574
addnode=190.147.101.196:7574
addnode=23.99.202.52:7574
addnode=34.73.249.231:7574
addnode=34.74.231.201:7574
addnode=34.74.79.40:7574
addnode=35.183.180.12:7574
addnode=35.229.58.97:7574
addnode=35.229.82.15:7574
addnode=35.236.105.67:7574
addnode=35.237.239.72:7574
addnode=40.118.238.149:7574
addnode=40.71.0.28:7574
addnode=40.83.221.67:7574
addnode=82.197.210.238:7574
addnode=86.57.193.186:7574
#----

Store with the Ctrl + x key
Question do you want to store? press Y key (Yes)
Then Press key (Enter)

Replace the text “REPLACE_WITH_MASTERNODE_PRIVATE_KEY” with the “masternode private key” that you created using the command “masternode genkey”.

masternodeprivkey=75eqvNfaEfkd3YTwQ3hMwyxL2BgNSrqHDgWc6jbUh4Gdtnro2Wo

Replace the text “REPLACE_WITH_EXTERNAL_IP_OF_VPS” with the external IP address of your VPS.

externalip=136.144.171.201

Start your node with the following command.
icolcoind

Setup the control wallet (2/2)

Transfer the required amount of 100.000 Icolcoin to the “collateral address” that you created using the command “getaccountaddress "MN1"”.

Wait until the transaction has the required masternode confirmations. (6 confirmations)

Go to Tools.
Click Debug console.

Enter the following command.

|| masternode outputs

Example output

[
{
"txhash": "429a5caf40178d6911ab71e61d6952a6cec8710405d8dc912d8e8a760a2ba24c",
"outputidx": 1
}
]

Go to “Tools”.
Click “Open Masternode Configuration File”.

Modify the following line and paste it into notepad.

MN1 136.144.171.201:7574 75eqvNfaEfkd3YTwQ3hMwyxL2BgNSrqHDgWc6jbUh4Gdtnro2Wo 429a5caf40178d6911ab71e61d6952a6cec8710405d8dc912d8e8a760a2ba24c 1

MN1 - Alias for your masternode.

136.144.171.201 - External IP of your VPS.

7574 - Replace with P2P port of your icolcoin.

75eqvNfaEfkd3YTwQ3hMwyxL2BgNSrqHDgWc6jbUh4Gdtnro2Wo - Masternode private key from the command “masternode genkey”.

429a5caf40178d6911ab71e61d6952a6cec8710405d8dc912d8e8a760a2ba24c - Value “txhash” from the command “masternode outputs”.

1 - Value “outputidx” from the command “masternode outputs”.

Save the file and close notepad.

Shutdown your wallet and re-open your wallet.

Go to “Settings”.
Click “Unlock Wallet”.

Enter your wallet passphrase and unlock your wallet.

Go to “Tools”.
Click “Debug console”.

Start your masternode using the command.

startmasternode alias false MN1

It will take +/- 30 minutes to activate your masternode.

Assets 2
You can’t perform that action at this time.