== ALIOTH COIN
MASTERNODE SETUP GUIDE ==
Step 1: Remote
Wallet - VPS Ubuntu 16 strongly
recommended
(execute in your terminal this commands one by one from your home directory, as
usual this is /root)
Note: This guide suppose
you login as 'root' user and your home directory is /root, otherwise in below
commands please replace 'root' with the full path to your home directory.
sudo apt-get update -y
sudo apt-get install libdb5.3++
sudo apt-get install libboost-all-dev
-y
sudo apt-get install dh-autoreconf
build-essential libtool autotools-dev
autoconf automake libssl-dev libboost-all-dev libevent-dev bsdmainutils libminiupnpc-dev libprotobuf-dev protobuf-compiler libqrencode-dev
software-properties-common libgmp3-dev git nano -y
(Note: this is one command line, not few lines)
sudo add-apt-repository ppa:bitcoin/bitcoin
-y
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev -y
Step 2:
You have two options – either to compile daemon yourself or to download
precompiled daemon. It’s up to your preference.
2.a To use precompiled daemon (recommended)
do:
wget https://github.com/aliothcoin/alth-release/raw/master/1.0.0.2/aliothd
chmod +x ./aliothd
2.b To compile daemon yourself (on some servers may pop up an error due to an
inappropriate version of OpenSSL)
git clone https://github.com/aliothcoin/aliothcoin
cd aliothcoin
chmod +x ./compile-daemon.sh
./compile-daemon.sh
cd ../
mv aliothcoin/src/aliothd ./aliothd
(your compiled daemon file aliothd moves
from folder /root/aliothcoin/src to
/root)
Step 3:
Local Wallet Side
(If you already have ALTH Masternodes on
your local wallet do not forget to make this, otherwise your MN will probably
stop working
In your local wallet go to
Settings->Options->Display
Check up "Display coin control
features", then Apply, then Ok
Go to 'Send' Tab
Click 'Inputs...' button
Check 'List mode'
Using Right Click lock your existing MN collateral coins that as they couldn't
be spent for other tx.
Now you can make any txs (send 1000 ALTH for
new MN or just spend your coins).
If you hadn't done this and accidentally spent part of your MN collateral coins
you would get error message when restarting your MN. In this case you can only
reset it completely.)
Most efficient method to do all necessary operations is to run 4
commands in your wallet 'help->Debug window->Console' as follows:
1ST COMMAND
getnewaddress MN1
1st output: (example, you use that one from your Debug
window -> Console) AYPxX2HCs9Rd6Kuw1XnE8Uxm3DhZxiAF4i
2ND COMMAND
sendtoaddress AYPxX2HCs9Rd6Kuw1XnE8Uxm3DhZxiAF4i 1000
(use address from your 1st Debug window
-> Console output here)
2nd output: (example, you use this taken from your Debug
window -> Console) 99b0aad5b073c85d3d566e4318d9da7d3c622b7ad864ebdcbdea03169a638534
----------------------------Then--------------------------------------
WAIT UNTIL AT LEAST 10
CONFIRMATIONS HAVE BEEN RECEIVED!
------------------------------------------------------------------------
3RD COMMAND (after 10 confirmations)
masternode genkey
3rd output: (example, you take this from your Debug
window -> Console)
6e7qr7exQr8Nrn6RWHGnhXQwiGadpS8Se2EVdaKvusMdLCFWsdn
4TH COMMAND
masternode outputs
4th output: (example)
{
"99b0aad5b073c85d3d566e4318d9da7d3c622b7ad864ebdcbdea03169a638534" :
"0"
}
1st value is TxHash,
the same as 2nd output, so here important is single digit after ‘:’, which is called vout. It can be "0" or "1".
Copy and save all outputs somewhere.
Step 4:
Get back on the VPS
From your home directory (as usual /root) execute:
./aliothd -daemon
(You can check if file aliothd is in current directory by typing 'ls -l' , it'll put
out the list of files)
This will start the service only for a second and create the initial data
directory (~/.Alioth/). It will request you to
create a rpc user
and password.
(After this you can press enter, or type in 'Ctrl+C' or 'killall aliothd' if it seems that program is still running. If that
doesn't help, enter 'reboot' and connect to vps again
on your ssh).
Then:
nano /root/.Alioth/Alioth.conf
Enter this wallet configuration data and insert
following lines (you may change rpcpassword,
but it must differ from rpcuser):
rpcuser=Aliothrpc
rpcpassword=AX9CtKHngZWc5DSbTcdbz9kYnLoWsMTRwSV
listen=1
server=1
daemon=1
maxconnections=250
masternode=1
externalip=1.2.3.4:46566
masternodeaddr=1.2.3.4:46566
masternodeprivkey=6e7qr7exQr8Nrn6RWHGnhXQwiGadpS8Se2EVdaKvusMdLCFWsdn
(replace there '1.2.3.4:46566' with your own real 'VPS_external_IP:46566')
Value of the masternodeprivkey is your 3rd
debug window output (masternode genkey). Save Alioth.conf file: Ctrl+o -> Enter -> Ctrl+x (OR: Ctrl+X and when asked whether you want to save the changes,
confirm with Y)
Now start daemon again, enter in your home directory (/root):
./aliothd -daemon
It will stay running in the background. To make sure everything's right, type
./aliothd getinfo
You are to see number of connections, blocks, vps IP
and other info.
To make your MN automatically start on reboot do next:
crontab -e
insert this line:
@reboot sleep 5; /root/aliothd -daemon
then press consequentially ^O -> Enter -> ^X
(if you login with another user name, replace '/root'
with full path to your home directory)
STEP 5:
Go back to the local wallet. Go to the Masternodes tab .
Click Create button and fill the details:
Alias: [Type here 'MN1' - the name of your masternode,
that you entered on Step 3 in the 1st command (getnewaddress MN1 )]
Address: [VPS_IP_ADDRESS:46566]
PrivKey:[MASTERNODE_PRIVATE_KEY created
in Step 3, 3rd debug window output]
TxHash:[txid from Step
3, 2nd output]
Output Index: [vout from Step 3,
4th output]
Reward Address: [Leave empty]
Rewards %: [Leave empty]
Click OK to add the masternode.
Click Update.
Restart your wallet.
Click Start All.
Wait for the masternode to mature and you
will get your rewards soon!
Done!
First masternode reward may take a while, up to 24 hours
depending on overall network masternodes number
and other features.