Earn 75% of peer-network staking earnings,automatically!
To setup a masternode you will first need 10,000 PHC, a Virtual Private
Server and a PHC-QT (GUI Wallet). A small amount of technical knowledge is
required to follow the setup guide below.
A masternode is a combination of two seperate wallets. A Controller and
slave walelt setup ensures secure storage of your collateral. A VPS (slave)
wallet will be configured to allow your GUI controller wallet to communicate
and exchange information. The controller wallet must remain unlocked and
connected through the PHC network to your slave (VPS) at all times for active
status. It's recommended to setup your controller wallet on a computer that
only you have physical access to, behind a firewall, running linux or Windows
with a good anti-virus.
A VPS wallet will be configured to allow your GUI controller wallet to
communicate and exchange information. The controller wallet must remain
connected through the PHC network to your VPS at all times for active status.
Step #1:
Setup your controller wallet - this will keep your coins safe.
Install PHC-QT on Windows or Linux from the official releases.
1.1-Load your PHC-QT wallet and sync.
1.2-Shut-down PHC-QT
1.3-Find your phc.conf file:
c:\Users\username\AppData\LocalRoaming\PHC(windows)
or
home/username/.PHC/ (Linux)
1.4-Edit phc.conf with notepad or gedit/nano
Add the following line :
staking=0
Save and exit.(This will help you turn off POS)
1.5-Load PHC-QT wallet and sync.
Backup your private keys and wallet file!(Very important! Or you may lose
your coin!)
Step #2:
Create your Masternode Collateral.
2.1-Click "Receive" and generate a new address with the label "Masternode
1".
2.2-Send exactly 10000 PHC to this address and wait for
confirmations.
Step #3:
Open the Debug Console.
3.1-Click Help on the top file menu.
3.2-Click Console on the top Tab Bar.
Step #4:
Generate your Private Key & and Outputs
4.1-In the debug console command box (bottom of screen) enter the
following:
masternode genkey
masternode outputs
4.2-You should see something very similar to this (save into a text file in
Notepad or Gedit/Nano/etc):
<-masternode genkey
->05040h0f9fdju3n9g9dsnwpx9g3nasz9dgnas
<-masternode outputs
->{
"29a839eca6be6f1f0656cb23ed04f824ddb72f19bf9168a0c5b5243eae34d7
65" : "0",
}
4.3-Close your debug window.
Step #5:
Configure your controller wallet (masternode.conf - recommended)
5.1-Open masternode.conf in Notepad or Gedit/Nano
Add the following information:
alias your_VPS_server_IP:20060 PRIVATEKEY TXT_HASH TXT_INDEX
An example:
mn1 your_VPS_server_IP:20060 05040h0f9fdju3n9g9dsnwpx9g3nasz9dgnas
29a839eca6be6f1f0656cb23ed04f824ddb72f19bf9168a0c5b5243eae34d765
0
Configure your controller wallet (GUI):
5.2-On the Menu bar click "Masternodes".
Click the Tab "My Masternodes".
Click the "Create" button.
Alias: MN1
Address: your_VPS_server_IP:20060
PrivKey: 05040h0f9fdju3n9g9dsnwpx9g3nasz9dgnas
TxHash:
29a839eca6be6f1f0656cb23ed04f824ddb72f19bf9168a0c5b5243eae34d765
Output: 0
5.3-Click "OK" now open up an SSH client Putty.
Step #6:
Register & Log in to your VPS as root. Ubuntu or Linux VPS is recommended.
(For example:Vultr)
(You can use $10/mo VPS with 1CPU/1G Memory/25GB SSD/1000GB
Bandwidth.)
Step #7:
7.1-Install the required wallet dependencies:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt-get install libssl-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libqrencode-dev
sudo apt-get install libgmp3-dev
sudo apt-get install miniupnpc
sudo apt-get install libminiupnpc-dev
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install dh-autoreconf
sudo apt-get install autoconf
sudo apt-get install automake
sudo apt-get install git nano
sudo apt-get install pkg-config
sudo apt-get install build-essential
sudo apt-get install libtool
sudo apt-get install libgmp-dev
There are some Y / N in this process, please enter Y. It will take some time,
please be patient.
7.2A-Download and manually compile Berkley DB 4.8 (Automatically)
sudo apt-add-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev
sudo apt-get install libdb4.8++-dev
7.2B-Download and manually compile Berkley DB 4.8 (If above fails)
cd ~
mkdir bitcoin/db4/
wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
tar -xzvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix/
../dist/configure --enable-cxx --disable-shared --with-pic
--prefix=/home/theusername/bitcoin/db4/
make install
7.2C-Download and manually compile Berkley DB-Curent (Auto-Optional)
sudo apt-get install libdb++-dev
sudo apt-get install libdb-dev
It will take some time, please be patient.
Step #8:
Create Swap Space(Important, otherwise you may fail to compile):
fallocate -l 3G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo -e "/swapfile none swap sw 0 0 \n" >> /etc/fstab
Step #9:
Build & compile the slave wallet binary:
git clone https://github.com/BiznatchEnterprises/phc
cd phc/src
make -f makefile.unix
sudo cp phcd /usr/bin
cd ..
It will take some time, please be patient.
Step #10:
10.1-Create your configuration File:
mkdir /root/.PHC
nano /root/.PHC/phc.conf
10.2-Copy and paste the following:
rpcuser=phc_edit_me
rpcpassword=pass_edit_me
listen=1
server=1
daemon=1
logtimestamps=1
masternode=1
maxconnections=256
externalip=server_ip:20060
masternodeaddr=server_ip:20060
masternodeprivkey=replace_me
Modify the abvove information:
Change phc_edit_me to a username or leave default
Change pass_edit_me to a secure password (random is recommended)
Replace server_ip with your VPS address
Replace replace_me with your private key from Step #4:
10.3-Save and exit (CTRL + X):
Step #11:
Load VPS wallet (in Putty):
cd /usr/bin
phcd
(When you run phcd, the PHC server starting appears. Press {ENTER}
again and Server will start.)
Step #12:
Start your masternode:
In your controller wallet (GUI) click "Masternodes"
Click the "My Masternodes" tab
Click "Update"
If you see your masternode slave-wallet VPS IP - excellent!
Then click "Start"
Once again "Update"
You should see "Masternode is running..."
Over a short-period of time it will show up in the PHC network tab
Step #13:
Close Putty:
phcd should remain running, if not you will need to log back in and install
screen.
Ubuntu/Debian:
sudo apt install screen
CentOS or Fedora:
sudo yum install screen
Starting screen:
screen
Starting PHCD:
phcd
Detatch from Screen:
Ctrl+a d
Reattach to Screen:
screen -r
CONGRATS, Your PHC Masternode is should now be active and you will
start to receive block rewards in the next few hours. You do not need
to install Sentinel.
This article only for education purpose . Use only your own risk
No comments:
Post a Comment
Note: only a member of this blog may post a comment.