Thornode - Linux
Setting up a fullnode on Linux
Prerequisites
Install all needed packages for building and configuring the THORNode daemon
apt install -y --no-install-recommends aria2 ca-certificates curl git golang jq make pvApplication user
Add the application user that is used to run the THORNode application
useradd -m thornode -s /bin/bashBuild
Checkout the latest code and build the binary
As thornode user run:
git clone --branch v2.135.1 https://gitlab.com/thorchain/thornode $HOME/build
cd $HOME/build
ln -fs /usr/bin/true docker; export PATH=$(pwd):$PATH; TAG=mainnet make install
# remove bifrost binary and build directory
rm $HOME/go/bin/bifrost
rm -rf $HOME/buildNote: The build process currently expects to have a docker binary available, which isn't needed for building the thornode binary, so providing it a fake docker command via symlink is just a hack around that limitation.
Prepare environment
Config
Before running the fullndode the first time, the configuration files and directory layout need to be created.
As thornode user run:
Seed nodes
Seeds provide a list of active thorchain nodes, which are needed to join the network.
As thornode user run:
Ports
THORChain doesn't use the cosmos-sdk default ports. Technically this step isn't needed, but it is meant to stay in line with all other THORNode deployments.
As thornode user run:
Genesis
For joining the network, the correct genesis file is required
As thornode user run:
Sync
The fastest way to join the network is by downloading a current snapshot and sync from it.
As thornode user run:
Systemd
Create a service file to be able to manage the thornode process via systemd
Reload systemd config
Start
Start the daemon
Last updated