This is a short tutorial on how to set up a validator node. You will need to set up a node in order to create your own staking pool.
CPU: 2 cores
RAM: 4GB
Disk: 100GB SSD
Stable Internet Connection
CPU: 4 cores
RAM: 6GB
Disk: 250GB SSD
Stable Internet Connection
Clone this repository or download the repository as a zip file and extract it
In the extracted files, you should see a nodes
directory.
Install Docker and Docker Compose (choose the Linux tab)
(choose your platform from the list i.e. Ubuntu)
In example, for Ubuntu, the setup steps would look like this:
the commands shown bellow should be typed in your terminal window
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo systemctl enable docker.service
sudo systemctl enable containerd.service
- On your terminal window type
cd
and make sure to leave a space after the command (don’t press enter yet) - Drag-n-drop the
nodes
folder on the terminal window and press enter - Type
../generate-key.sh
to generate a new private key and copy it - Edit
compose.yml
innodes/validator1
directory and replace0000000000000000000000000000000000000000000000000000000000000000
on line21
with the newly generated key that you have copied
- Open a terminal window, type
cd
and make sure that you leave a space after the command (don't press enter yet) - Drag-n-drop the
nodes
folder on the terminal window and press enter
To start the node type ./run_all.sh
in the terminal and press enter.
To monitor your node type ./nodes/validator1/monitor-node.sh
in the terminal and press enter.
You can check for any errors and see if your node is syncing.
To stop the node type ./stop_all.sh
in the terminal and press enter.
Install Docker Desktop for Mac: Install Docker Desktop on Mac | Docker Documentation
For the following instructions to work you will need to have Docker Desktop running.
- Open the
generate-key.sh
file to generate a new private key and copy it - Edit
compose.yml
innodes/validator1
directory and replace0000000000000000000000000000000000000000000000000000000000000000
on line21
with the newly generated key that you have copied
To start the node open the run_all.sh
file which is inside the nodes
folder.
To monitor your node open the monitor-node.sh
file in the nodes/validator1
directory.
You can check for any errors and see if your node is syncing.
To stop the node open the stop_all.sh
file which is inside the nodes
folder.