How Can We Help?
Search for answers or browse our knowledge base.
Bare Metal Nodes – Get Started
Get started
In order to participate in the GNY network you will need to run a Blockchain node. It helps to decentralize the network in case other nodes drop out. For producing blocks you need to run a Blockchain node and activate the block generation by supplying your Delegate secret
.
A Blockchain node consists of a node.js
app and a postgres
database.
Prerequisites
We support currently only Linux. Please use Ubuntu or one of its derivates:
- Ubuntu 18.04.3 LTS
- Ubuntu 19.10
Install Git
sudo apt-get install git
Install Git from the Git Website
Install node.js
Install node.js
with nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
If this didn’t worked please visit the nvm website
Install node.js
version v10.16.2
:
nvm install v10.16.2
nvm alias default
Install PostgreSQL 10
sudo apt-get install postgresql-10
Setup PostgreSQL
sudo -i -u postgres psql -c "CREATE USER postgres2 WITH PASSWORD 'docker' CREATEDB;"
sudo -i -u postgres psql -c "CREATE DATABASE postgres2 WITH OWNER postgres2;"
Install necessary dependencies:
sudo apt-get install curl ntp wget libssl-dev openssl make gcc g++ autoconf automake python build-essential -y
sudo apt-get install libtool libtool-bin -y
Clone Repository
:::: tabs
::: tab mainnet
Clone the repository and checkout the mainnet
branch:
git clone https://github.com/gnyio/gny && cd gny
git checkout mainnet
:::
::: tab testnet
Clone the repository and checkout the testnet
branch:
git clone https://github.com/gnyio/gny && cd gny
git checkout testnet
:::
::::
Compile project
npm ci &&
npm run lerna:bootstrap &&
npm run lerna:tsc