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.
System Requirements:
Update the system:
sudo apt update && sudo apt upgrade -y
Install necessary packages:
sudo apt install curl git build-essential -y
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/
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
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