Skip to content

Run a Node

BitHaru edited this page Apr 10, 2021 · 15 revisions

Hardware recommendations

  • 2GB RAM
  • Dual-Core CPU
  • 100 Mbps bandwidth (2TB or more of available monthly bandwidth)
  • SSD-based hard drive with 40GB+ of free space

OS requirements

  • linux: Ubuntu 18.04+, Debian 9+, Centos 8+

Prerequisites

1. screen

  • Ubuntu/Debian:
sudo apt install screen  
  • CentOS
dnf install screen

2.UDP Tuning

Increase OS UDP buffers to improve performance.

  • Ubuntu/Debian/CentOS
vi /etc/sysctl.conf

#append the following lines at the end of sysctl.conf
net.core.rmem_max=33554432
net.core.rmem_default=33554432
net.core.wmem_max=33554432
net.core.wmem_default=8388608
net.core.netdev_max_backlog=100000
net.ipv4.udp_rmem_min=8388608

#make the changes effective
sysctl -p

3. Check system time

The rai_node needs the system clock to be accurate (±16 seconds), you can use 'date' command to check it and compare with https://time.is.

date
Sat Oct 10 13:55:49 UTC 2020

Most Linux systems have time synchronization built in and activated by default. If your system time is incorrect, please set up time synchronization manually.

Installation and Usage

1. Create key pair

./rai_node --key_create --file=key.dat
cd ~/Raicoin
pwd #print where key.dat is stored

Important===> backup the key.dat and remember the password.

2. Create Config

./rai_node --config_create --forward_reward_to=#REPLACE WITH YOUR RAICOIN ACCOUNT CREATED BY https://raiwallet.org#

3. Start Node

screen -S node
./rai_node --daemon --key=key.dat
#input password of the key.dat
#press CTRL+a+d to leave screen and let the daemon running
#use 'screen -r node' command to resume screen

Record your node account shown when the node starts.

4. Maximize your revenue [optional but recommended]

Change your wallet's representative to your node account to get extra reward. When your wallet receives first reward (typically 72 hours later), then click "Settings-->Account Settings", enter the node account(shown in step 3) in "New Representative" field and click "CHANGE REPRESENTATIVE", done!