Skip to content

pvccrypto/PVCC-1

 
 

Repository files navigation

PVCC [PVCC] 2023

What is the PVCC Blockchain?

Overview

PVCC is a blockchain project

Blockchain Technology

The PVCC [PVCC] Blockchain is an experimental smart contract platform that enables instant payments to anyone, anywhere in the world in a private, secure manner. PVCC [PVCC] uses peer-to-peer blockchain technology to operate with no central authority: managing transactions, execution of contracts, and issuing money are carried out collectively by the network.

Custom Difficulty Retarget Algorithm “VRX”

VRX is designed from the ground up to integrate properly with the Velocity parameter enforcement system to ensure users no longer receive orphan blocks.

Velocity Block Constraint System

Ensuring PVCC stays as secure and robust as possible, we have implemented what's known as the Velocity block constraint system. This system acts as a third and final check for both mined and peer-accepted blocks, ensuring that all parameters are strictly enforced.

Demi-Nodes

Our network now operates by using "Demi-nodes" to help the wallet make informed decisions on how to treat a peer in the network or even other nodes that aren't trusted. Demi-nodes are a list of trusted nodes a user can define inside of the wallet. These user-defined trusted nodes then can be queried for specific data such as asking the Demi-node network wether or not a reorganization request from another peer is a valid one or something that should be rejected and then banned off the network to protect other peers. An adaptive self cleaning network as this continiously defends itself from any possible intrusion or attack while still keeping decentralization as the underlying focus by allowing users to define their own lists. This feature compliments the Velocity security system which goes beyond other blockchain's security methods to ensure no possibility of malformed blocks making it onto the chain even with something like a 51% attack.

Quark (Quark-Hash) Proof-of-Work Algorithm

Quark hashing algorithm is utilized for the Proof-of-Work function and also replaces much of the underlying codebase hashing functions as well that normally are SHA256.

Specifications and General info

PVCC uses

libsecp256k1
libgmp
Boost1.74, OR Boost1.6+
Openssl1.02u, OR OpenSSL1.1.1q, OR OpenSSL3.0.5
Berkeley DB 6.2.32
QT5.15.2 (for GUI)

General Specs

Coin Name: PVCC
Ticker: PVCC
Block Spacing: 2 Minutes
Stake Minimum Age: 10 Confirmations (PoS-v3)
Block Reward: 100 PVCC
PoS Reward: 30 PVCC 
MasterNode Reward: 70 PVCC
MasterNode Collateral: 500,000 PVCC
Maximum Coin Count: 50 Billion PVCC
Port: 23003
RPC Port: 23004

BUILD LINUX

Compiling PVCC "SatoshiCore" daemon on Ubuntu 22.04 LTS (Jammy Jellyfish)

Note: guide should be compatible with other Ubuntu versions from 14.04+

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.conf
listen=1
server=1
daemon=1
deminodes=1
demimaxdepth=200
testnet=0
rpcuser=PVCCrpcuser
rpcpassword=SomeCrazyVeryVerySecurePasswordHere
rpcport=23004
port=23003
rpcconnect=127.0.0.1
rpcallowip=127.0.0.1
addnode=45.56.105.176:23003
addnode=162.0.216.75:23003
addnode=162.0.236.77:23003
addnode=172.92.226.137:23003
addnode=18.188.254.20:23003
addnode=212.64.216.137:23003
addnode=24.113.1.62:23003
addnode=5.75.159.59:23003
addnode=62.171.132.112:23003
addnode=84.247.173.139:23003
CONFIG
chmod 700 ~/.PVCC/PVCC.conf; chmod 700 ~/.PVCC; ls -la ~/.PVCC

Run PVCC daemon

cd ~; PVCCd; PVCCd getinfo

(Optional) Build PVCC-QT (GUI wallet) on Linux

All previous steps must be completed first. (If you recompiling some other time you don't have to repeat previous steps.)

Install Qt dependencies:

sudo apt-get install -y qtcreator qtbase5-dev qttools5-dev qttools5-dev-tools qt5-qmake cmake

Install extended dependencies:

sudo apt-get install -y autoconf autotools-dev pkg-config zlib1g-dev

Qt Dependencies build and link (1 of 2):

wget https://ppa.launchpadcontent.net/linuxuprising/libpng12/ubuntu/pool/main/libp/libpng/libpng_1.2.54.orig.tar.xz; tar Jxfv libpng_1.2.54.orig.tar.xz; cd ~/libpng-1.2.54; ./configure; make; sudo make install; cd ~; sudo ln -s /usr/local/lib/libpng12.so.0.54.0 /usr/lib/libpng12.so; sudo ln -s /usr/local/lib/libpng12.so.0.54.0 /usr/lib/libpng12.so.0

Qt Dependencies build and link (2 of 2):

wget https://fukuchi.org/works/qrencode/qrencode-4.0.2.tar.gz; tar zxfv qrencode-4.0.2.tar.gz; cd ~/qrencode-4.0.2; ./configure; make; sudo make install; sudo ldconfig

Ubuntu Legacy Patch (Ubuntu 18.04 and older)

sudo apt-get install -y libevent-dev
cp -r ~/PVCC/src/qt/forms/signverifymessagedialog.ui.legacy_qt ~/PVCC/src/qt/forms/signverifymessagedialog.ui
cp -r ~/PVCC/src/qt/forms/rpcconsolesettings.ui.legacy_qt ~/PVCC/src/qt/forms/rpcconsolesettings.ui
cp -r ~/PVCC/src/qt/forms/rpcconsole.ui.legacy_qt ~/PVCC/src/qt/forms/rpcconsole.ui

Build PVCC Qt

cd ~/PVCC; qmake -qt=qt5 USE_UPNP=-; make

Troubleshooting

for basic troubleshooting run the following commands when compiling:

this is for minupnpc errors compiling

make clean -f makefile.unix USE_UPNP=-
make -f makefile.unix USE_UPNP=-

Updating daemon in bin directory

cd ~; cp -r ~/PVCC/src/PVCCd /usr/local/bin

License

PVCC [PVCC] is released under the terms of the MIT license. See COPYING for more information or see https://opensource.org/licenses/MIT.

Development Process

The master branch is regularly built and tested, but is not guaranteed to be completely stable. Tags are created regularly to indicate new official, stable release versions of PVCC [PVCC].

Testing

Testing and code review is the bottleneck for development; we get more pull requests than we can review and test on short notice. Please be patient and help out by testing other people's pull requests, and remember this is a security-critical project where any mistake might cost people lots of money.

Releases

No releases published

Packages

No packages published

Languages

  • C++ 74.3%
  • C 21.0%
  • Python 1.0%
  • HTML 0.8%
  • Java 0.5%
  • Sage 0.5%
  • Other 1.9%