Use the following instructions to setup a masternode for a quark based coin.
Make sure that you have the following requirements.
- The required amount of SLACK to setup the masternode. (10,000)
- A wallet to store your coins.
- A server or VPS.
The instructions are split into three (3) sections.
===='////,===='////,===='////,===='////,====
Setup the control wallet (Part 1 of 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 genkeyExample output: 75eqvNfaEfkd3YTwQ3hMwyxL2BgNSrqHDgWc6jbUh4Gdtnro2Wo
Show your collateral address.
getaccountaddress "masternode"Example output:
Nad4xtgdwf7c5y45ruy5MWtVY43zYMCvvaKeep note of the masternode private key and the collateral address.
===='////,===='////,===='////,===='////,====
Setup the VPSUpdate your VPS machine:
sudo apt-get update
sudo apt-get upgradeInstall 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
To install Berkeley DB from source code.
wget https://download.oracle.com/berkeley-db/db-4.8.30.zip
unzip db-4.8.30.zip
cd db-4.8.30
cd build_unix/
../dist/configure --prefix=/usr/local --enable-cxx
make
sudo make installAnd what the fuck is this?sudo apt-get install dirmngr
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
Install the coins daemon and tools.
Create the coins config file.
mkdir $HOME/.econocalypse
nano $HOME/.econocalypse/econocalypse.conf
Paste the following lines in econocalypse.conf
############# START rpcuser=rpc_examplecoin # What are you needed for..
pcpassword=kuw05sqio7bcm8z96o7redv17xws1lw6xpd1qf33
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
maxconnections=64
masternode=1
masternodeprivkey=REPLACE_WITH_MASTERNODE_PRIVATE_KEY # stuff from 'masternode genkey'
externalip=REPLACE_WITH_EXTERNAL_IP_OF_VPS############# STOP Start your node with the following command.
./examplecoind &===='////,===='////,===='////,===='////,====
Setup the control wallet (Part 2 of 2)Transfer the required amount of coins to the “collateral address” that you created using the command “getaccountaddress "masternode1"”.
Wait until the transaction has the required masternode confirmations.
Go to
Tools.
Click
Debug console.
Enter the following command.
masternode outputsExample output[
{
"txhash": "429a5caf40178d6911ab71e61d6952a6cec8710405d8dc912d8e8a760a2ba24c",
"outputidx": 1
}
]Go to “
Tools”.
Click “
Open Masternode Configuration File”.
Modify the following line and paste it into notepad.
masternode xxx.xxx.xxx.xxx:xxxx 75eqvNfaEfkd3YTwQ3hMwyxL2BgNSrqHDgWc6jbUh4Gdtnro2Wo 429a5caf40178d6911ab71e61d6952a6cec8710405d8dc912d8e8a760a2ba24c 1masternode - Alias for your masternode.
xxx.xxx.xxx.xxx - External IP of your VPS.
xxxx - Replace with P2P port of your coin.
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 editor.
Shutdown your wallet and re-open your wallet.
Go to “
Settings”.
Click “
Unlock Wallet”,
If it was encrypted.
Enter your wallet passphrase and unlock your wallet.
Go to “
Tools”.
Click “
Debug console”.
Start your masternode using the command.
startmasternode alias false masternode1It will take +/- 30 minutes to activate your masternode.