Graft Supernode (graft-ng)
Supernodes represent the Proof-of-Stake Network layer for GRAFT Network.
Their main function is instant authorizations. Instant authorizations are accomplished via supernode sample-based consensus. Supernodes get rewarded with part of the sale transaction fee for their work. Supernodes also provide DAPI into GRAFT Network, supporting various transaction types including and most notably a "Sale" transaction compatible with the Point-of-Sale environments.
GRAFT Network itself is an attempt at building a payment network that functions similarly to other credit card networks with instant authorizations, merchant paid (greately reduced) transaction proportionate fees, multiple transaction types that are compatible with point-of-sale workflows, adaptable to regulatory environments and with unlimited TPS via decentralization.
Compiling Graft Supernode from Source
Due to gcc 7.3.0 being a hard requirement, we strongly recommend to use Ubuntu 18.04 as a build platform*
|Dependency||Min. Version||Debian/Ubuntu Pkg||Arch Pkg||Optional||Purpose|
||NO||command line interface|
[^] Some Debian/Ubuntu versions (for example, Ubuntu 16.04) don't support CMake 3.10.2 from the package. To install it manually see Install non-standard dependencies bellow.
Install non-standard dependencies
Go to the download page on the CMake official site https://cmake.org/download/ and download sources (.tar.gz) or installation script (.sh) for CMake 3.10.2 or later.
If you downloaded sources, unpack them and follow the installation instruction from CMake. If you downloaded installation script, run following command to install CMake:
sudo /bin/sh cmake-3.10.2-Linux-x86_64.sh --prefix=/opt/cmake --skip-license
If you don't want to download the installation script manually, you can simply run following command from the command line (it requires curl and you must accept license by yourself):
curl -s https://cmake.org/files/v3.12/cmake-3.10.2-Linux-x86_64.sh | bash -e
git clone --recurse-submodules https://github.com/graft-project/graft-ng.git
To build graft_server, please run the following commands:
mkdir -p <build directory> cd <build directory> cmake <project root> make
If you want to build unit test suit as well, run cmake with additional parameter:
mkdir -p <build directory> cd <build directory> cmake <project root> -DOPT_BUILD_TESTS=ON make all
Then execute graft_server_test to run the tests.
See Instructions for more details.