Stake Masternode setup.
Stake Masternode setup guide. Windows wallet and ubuntu vps.
What you will need:
77 777 stake coins
Masternode Server Ubuntu 16.04 (https://vultr.com, or http://digitalocean.com are popular choices)
A fully sync’d stake wallet
A SSH Client - we recommend PuTTY for Windows.
VPS SETUP
I have set up a sudo user using the following tutorial. You can skip the step about the hostname if you give your VPS a name when you set it up. https://www.vultr.com/docs/setup-a-non-root-user-with-sudo-access-on-ubuntu.
Copy the following into your VPS one line at a time. Use CTRL+INSERT to paste in PuTTY.
INSTALL DEPENDENCIES.
enter each of these commands separately and answer any prompts accordingly.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt-get install libssl-dev
sudo apt-get install libdb++-dev
sudo apt-get install libgmp3-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libqrencode-dev
sudo add-apt-repository ppa:bitcoin/bitcoin
BUILD THE DAEMON
sudo git clone https://github.com/StakeDeveloper/stake.git
cd stake/src
sudo make -f makefile.unix
this will take a little while. PERFORM THESE STEPS ON YOUR LOCAL WALLET.
- create an address and send exactly 77,777 stake to it.
- in the debug console type the following commands
masternode genkey
This will give you your masternode private key, copy it down.
masternode outputs
This will give you your txid for your masternode collaterall, you will need these for your masternode.conf file. Run %APPDATA%/stake on windows and copy the following into a plain text file and save it as masternode.conf.
[masternode name ] [your ip address]:33234 [info from masternode genkey] [info from masternode outputs] [0 or 1 from masternode outputs]
BACK ON YOUR VPS.
If the daemon is done compiling, start it to populate the .Stake folder with your .conf files.
sudo ./staked -daemon
you should see an error message with a recommended RPC user/password and the location of your .conf file. You may use this RPC info or create your own, but take note of the location. It may differ from this tutorial depending on your vps setup. For this tutorial, it is....
sudo nano /home/stake/.Stake/Stake.conf
copy the following info into the .conf file. Press Ctrl+O to save and Ctrl+X to exit.
rpcuser=[SOMETHING COMPLICATED]
rpcpassword=[SOMETHING MORE COMPLICATED]
listen=1
server=1
daemon=1
rpcallowip=127.0.0.1
port=33234
copy the following information into your stake.conf file of your local wallet. Run %APPDATA%/stake on windows to access this file, it is the same location as you saved your masternode.conf file.
rpcuser=[SOMETHING COMPLICATED]
rpcpassword=[SOMETHING MORE COMPLICATED]
listen=1
masternode=1
masternodeaddr=[YOUR MASTERNODE ADDRESS]:33234
masternodeprivkey=[YOUR MASTERNODE PRIVATE KEY]
staking=1
rpcallowip=127.0.0.1
port=33234
You will also need to copy the info from your masternode.conf file onto your vps in the same director as the stake.conf file. For the purposes of this tutorial that is...
sudo nano /home/stake/.Stake/masternode.conf
Press Ctrl+O to save and Ctrl+X to exit and start the daemon.
cd stake/src
sudo ./staked -daemon
If you get a message that says Stake server starting, you've done everything right. Restart your local wallet and start your masternode using the following command in the debug console.
masternode start
Alternately, you can start your node from the masternodes tab. If you have an error which says "could not allocate vin" there is likely a problem with your collateral. Try the lock unspent true command in the console. A parsing error would be indicitive of unnecessary spaces somewhere in your .conf files. If your node goes out after a while be sure to make sure the rpc info is matching between the vps and local wallet. You can add staking=1 to your local .conf file and keep your local wallet open for extra rewards. Enjoy, and happy staking. Here is some other useful commands.
./staked getinfo
./staked stop
Join us on Discord https://discord.gg/VdMYqt9
donations:
Stake: SaYf3HBv1eKsWqoRDzwvtKQJX9PKtLZrj1
BTC: 3J2ki3TuNceUPSSPaYgYr82EpoDs2S8tr8
LTC: LW3A5YKKFA2tAYUvpqMHG5hF5eTxTiV1jj