Pandacash Masternode Setup Guide
RequirementsThere are many different ways to set-up a masternode. This method requires a Virtual Private Server, eliminating the need to run your own computer 24/7. Your funds are also safely stored on your local wallet, not the VPS.
The following requirements are needed to set-up a Masternode using this guide.
A fully synced local wallet - download from
https://github.com/AtlantisL/PandaCash/releases 200,000 PANDA + 1 PANDA for transaction fees (I recommend having the funds in your wallet from the beginning)
A Virtual Private Server (VPS). Any VPS should work. Ubuntu 16.04 is good - I recommend to purchase from:
https://www.vultr.com/?ref=7273673. Another VPS provider:
https://www.time4vps.eu/. A Cloud Compute with with IP4 support (from
www.vultr.com, USD3.5/month) server is enough for 1 masternode. 1 Masternode will work on 1 GB RAM, 1 Core CPU, 20 GB HDD.
Download and install Putty from:
www.putty.org Mac users can user Terminal to connect:
https://apple.blogoverflow.com/2012/02/how-to-use-ssh-on-mac-os-x/ Desktop Notepad for record keeping
An ability to follow instructions
VPS Set-upAfter Purchasing the VPS, you will need to install an Operating System. Select the latest Ubuntu (64-bit) from the list of available operating systems and install it.
Launch Putty, or use the Mac terminal guidelines, and log into the VPS using the IP address that was provided for your purchased VPS. Note your VPS IP address as you will needed in a later step. I will refer to it as VPS_IP.
You may see a certificate warning, since this is the first time you are connecting to this server. You can safely click Yes to trust this server in the future.
You are now connected to the server and should see a terminal window. Begin by logging into your server with the user root and password supplied by the hosting provider.
To paste in the Putty, Right Click the mouse button. The password field will always look empty, which is a safety feature.
Now that you are logged in to the system, we will update the system from the Ubuntu package library.
apt updateand
apt upgrade The next step is to install nano, which is a text editor.
sudo apt-get install nanoNext we'll create a folder called "pandacash", download the precompiled official wallet and install it. Then copy and paste these commands.
mkdir pandacashcd pandacashwget https://github.com/AtlantisL/PandaCash/releases/download/v1.0.0.0/pandacash-daemon-1.0.0.0-linux64.tar.gztar xzvf pandacash-daemon-1.0.0.0-linux64.tar.gzNext we'll try to run the Pandacash daemon. This should fail because the RPC credentials do not exist in the configuration file, but this command will create the configuration file to be used. Input:
./pandacashd -daemon You can now minimize the Putty window or just close it and come back to it after we complete the next steps.
Create a MasterNode Address (ALIAS) & send collateral Open the Pandacash wallet, go to File > Receiving Addresses > New
Name the Label and hit OK, (Make it 1 word). The Label is your masternode ALIAS.
While you are still in the Receiving Addresses table, select the address you just created and hit the Copy button. Close this window.
Next you will need to send the collateral (EXACTLY
200,000 PANDA) to this address. Do so by going to the Send tab and pasting the Address you just copied to the Pay To: field. The Label should automatically show up as the one you just named. Enter exactly
200,000 into the amount field and hit Send. This address belong to your account, you essentially send money to yourself. Your funds will stay in your account.
Now go to the Transactions tab and double click on the Transaction you just made. Record the
TRANSACTION_ID in Notepad, it will be required in the next step. You also need to wait until 15+ confirmations on this transaction before continuing .
Generate Masternode private key & Index IDGo to Tools>Debug Console
Type the following command and copy the generated key to Notepad, this will be your
PRIVATE_KEYmasternode genkeyWhile in debug console, type in the following and copy the "outputidx"
digit this will be your
INDEX_IDmasternode outputs Edit masternode.conf file on your local computer
On your local, Qt, wallet click on Tools > Open Masternode Configuration File "masternode.conf".
This should open a file in notepad, or Mac equivalent, that you can edit.
Add a line containing this information: make sure to include the port after the IP address (:30020)
ALIAS VPS_IP:30020
PRIVATE_KEY TRANSACTION_ID INDEX_IDNext, use notepad to open "pandacash.conf" to add these: (change the text shown in bold)
rpcallowip=127.0.0.1
rpcuser=ANY_LONG_USERNAME
rpcpassword=ANY_LONG_PASSWORD
staking=0
server=1
listen=1
daemon=1
port=30020
masternode=1
masternodeaddr=
VPS_IP:30020
externalip=
VPS_IP:30020
masternodeprivkey=
PRIVATE_KEY Configure VPSOpen Putty and enter:
nano /root/.pandacash/masternode.confCopy the contents of the masternode.conf file on the machine and pastes it into the terminal (right-click the mouse). Make sure the rows you add are displayed.
Press CTRL + X to exit the file. Press Y to confirm, and then press Enter to save.
Now enter:
nano /root/.pandacash/pandacash.confCopy the contents of the local "pandacash.conf" file and pastes it into the terminal. Press CTRL + X, Y and Enter to exit and save the file.
Close and restart the wallet
To take effect for configuration changes, we must restart both wallets.
Close the local wallet on the desktop and start it again.
Then run:
nohup ./pandacashd > /dev/null 2>&1 &Open the master node
in your local wallet, go to the tools > debug console, and then type:
startmasternode alias false mn1Check in your wallet>Masternodes tab. If the Status is ENABLED, your masternode is running. If it is a problem, try right click the row and choose “Enable”.
You can now close your VPS by Exiting out of the window and close your local wallet.
Create multiple master nodesI will assume that you are familiar with building a master node and understanding the basics. This approach requires two diffe[Suspicious link removed] servers because PANDACASH requires that each master node have a unique IP.
The local pandacash.conf should not contain any settings that are related to the main node points, as opposed to the use of a single main node point.
You need to generate a individual master node private key for each master node and get its output as before.
Local pandacash.conf
rpcallowip=127.0.0.1
rpcuser=user
rpcpassword=password
staking=1
server=1
listen=1
port=30020
Local masternode.conf
MN1.ALIAS MN1.VPS_IP:0020 MN1.PRIVATE_KEY MN1.TRANSACTION_ID MN1.INDEX_ID MN2.ALIAS MN2.VPS_IP:30020 MN2.PRIVATE_KEY MN2.TRANSACTION_ID MN2.INDEX_ID
MN1 pandacash.conf
nano /root/.pandacash/pandacash.conf
rpcallowip=127.0.0.1
rpcuser=user
rpcpassword=password
staking=0
server=1
daemon=1
listen=1
port=30020
masternode=1
masternodeaddr=MN1.VPS_IP:30020
externalip=MN1.VPS_IP:30020
masternodeprivkey=MN1.PRIVATE_KEY
MN1 masternode.conf
nano /root/.pandcash/masternode.conf MN1MN1.ALIAS MN1.VPS_IP:0020 MN1.PRIVATE_KEY MN1.TRANSACTION_ID MN1.INDEX_ID
MN2 panacash.conf
nano /root/.pandacash/pandacash.confrpcallowip=127.0.0.1
rpcuser=user
rpcpassword=password
staking=0
server=1
daemon=1
listen=1
port=30020
masternode=1
masternodeaddr=MN2.VPS_IP:30020
externalip=MN2.VPS_IP:30020
masternodeprivkey=MN2.PRIVATE_KEY
MN2 masternode.conf
nano /root/.pandacash/masternode.conf
MN2.ALIAS MN2.VPS_IP:30020 MN2.PRIVATE_KEY MN2.TRANSACTION_ID MN2.INDEX_ID
Start each VPS server:
cd pandacash
./pandacash -daemon
In your local wallet, go to Tools>Debug Console and type:
startmasternode all false
OR
startmasternode alias false mn1
startmasternode alias false mn2
If you named your alias something else other than mn1, then substitute the mn1 for your alias name.
If you get an Error: "Please enter the wallet passphrase with walletpassphrase first (code -13)" . You need to Unlock your wallet by going to Settings > Unlock Wallet.
After successful start:
Check in your Wallet>Masternodes tab. If the Status is ENABLED, your masternode is running.
You may also open up Putty and type this command to check if the Masternode started
./pandacash-cli masternode status
You can now close your local wallet and Putty. The VPS will do all the work for you!