CrossFi Node Installation Guide

Setting up a CrossFi node allows you to participate in the network and become a validator. Follow these steps to install a node on your server.

Step 1: Environment Preparation

System Requirements:

Update the system:

sudo apt update && sudo apt upgrade -y

Step 2: Install Required Dependencies

Install necessary packages:

sudo apt install curl git build-essential -y

Step 3: Download and Install CrossFi

Download and extract the node:

curl -LO <https://github.com/crossfichain/crossfi-node/releases/latest/download/crossfi-node_0.3.0-prebuild9_linux_amd64.tar.gz>
tar -xvf crossfi-node_0.3.0-prebuild9_linux_amd64.tar.gz

Move the executable:

chmod +x crossfid
sudo mv crossfid /usr/local/bin/

Step 4: Configuration Setup

Initialize the node:

crossfid init <your_node_name>

Adjust configuration files:Edit the config.toml file to set network parameters and ports:

nano ~/.crossfi/config/config.toml

Step 5: Start the Node

Create a systemd service to manage the node:Create a systemd service file:Insert the following content:

sudo nano /etc/systemd/system/crossfid.service
[Unit]
Description=CrossFi Node
After=network.target

[Service]
ExecStart=/usr/local/bin/crossfid start
Restart=on-failure

[Install]
WantedBy=multi-user.target