What are Masternodes?
Masternodes are masternodes backed by collateral held in PVCC, and are designed to provide advanced services and governance on the blockchain. PVCC has been associated with the concept of masternodes ever since the invention of this novel concept soon after the project started in 2023.
BUILD LINUX
Compiling PVCC “SatoshiCore” daemon on Ubuntu 22.04 LTS (Jammy Jellyfish)
Step 1: Compiling PVCC "SatoshiCore" daemon on Ubuntu 22.04 LTS (Jammy Jellyfish)
Become poweruser
sudo -i
CREATE SWAP FILE FOR DAEMON BUILD (if system has less than 2GB of RAM)
cd ~; sudo fallocate -l 3G /swapfile; ls -lh /swapfile; sudo chmod 600 /swapfile; ls -lh /swapfile; sudo mkswap /swapfile; sudo swapon /swapfile; sudo swapon --show; sudo cp /etc/fstab /etc/fstab.bak; echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
Dependencies install
cd ~; sudo apt-get install -y ntp git build-essential libssl-dev libdb-dev libdb++-dev libboost-all-dev libqrencode-dev libcurl4-openssl-dev curl libzip-dev; apt-get update -y; apt-get install -y git make automake build-essential libboost-all-dev; apt-get install -y yasm binutils libcurl4-openssl-dev openssl libssl-dev; sudo apt-get install -y libgmp-dev; sudo apt-get install -y libtool;
Dependencies build and link
cd ~; wget http://download.oracle.com/berkeley-db/db-6.2.32.NC.tar.gz; tar zxf db-6.2.32.NC.tar.gz; cd db-6.2.32.NC/build_unix; ../dist/configure --enable-cxx --disable-shared; make; sudo make install; sudo ln -s /usr/local/BerkeleyDB.6.2/lib/libdb-6.2.so /usr/lib/libdb-6.2.so; sudo ln -s /usr/local/BerkeleyDB.6.2/lib/libdb_cxx-6.2.so /usr/lib/libdb_cxx-6.2.so; export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.6.2/include"; export BDB_LIB_PATH="/usr/local/BerkeleyDB.6.2/lib"
GitHub pull (Source Download)
cd ~; git clone https://github.com/PVC-crypto/PVCC
Build PVCC daemon
cd ~; cd ~/PVCC/src; chmod a+x obj; chmod a+x leveldb/build_detect_platform; chmod a+x secp256k1; chmod a+x leveldb; chmod a+x ~/PVCC/src; chmod a+x ~/PVCC; make -f makefile.unix USE_UPNP=-; cd ~; cp -r ~/PVCC/src/PVCCd /usr/local/bin/PVCCd;
Create config file (for daemon, DO NOT USE FOR QT)
cd ~; sudo ufw allow 23003/tcp; sudo ufw allow 23004/tcp; sudo ufw allow 22/tcp; sudo mkdir ~/.PVCC; cat << "CONFIG" >> ~/.PVCC/PVCC.conflisten=1server=1daemon=1deminodes=1demimaxdepth=200testnet=0rpcuser=PVCCrpcuserrpcpassword=SomeCrazyVeryVerySecurePasswordHererpcport=23004port=23003rpcconnect=127.0.0.1rpcallowip=127.0.0.1addnode=45.56.105.176:23003addnode=162.0.216.75:23003addnode=162.0.236.77:23003CONFIGchmod 700 ~/.PVCC/PVCC.conf; chmod 700 ~/.PVCC; ls -la ~/.PVCC
Run PVCC daemon
cd ~; PVCCd; PVCCd getinfo
Step 2: Create a Master Node Address and Fund It
- Create a new address by typing PVCCd getnewaddress on your PVCC Daemon
- Send 500,000 PVCC to your new address
- Once confirmed in the block explorer you can start with step 3
Step 3: Create a Master Node Key and TxHash
PVCCd masternode genkey – copy your private key
PVCCd masternode outputs – Copy txhash and output index
Step 4: Update PVCC.conf and Create Masternode.conf
Go to root directory and type cd .PVCC
Open PVCC.conf add this
masternode=1
externalip=youripaddress:23003
masternodeprivkey=yourmasternodeprivatekey
save and exit
nano masternode.conf
(NameofMasternode) (yourip):23003 (yourmasternodeprivkey)
(txhash) (outputtext)
Step 5: Restart and Run Masternode
Restart daemon
PVCCd masternode start