Waivio

Recommended Posts

SPS Validator Node: Setup Guide for Dummies on Mac

2 comments

hanv16.61last monthPeakD3 min read

Hi!
I've created this guide for those who want to run a Validator node on a macOS without renting a server. If anything is unclear, doesn't work, or have any questions, feel free to leave a comment or contact me! I'll be happy to help.

Prepare

Install Docker Desktop on Mac
https://docs.docker.com/desktop/setup/install/mac-install/

https://files.peakd.com/file/peakd-hive/hanv/23x9qikPfQ4jizCECA9SgVvkmJDnTV6NrgkAMu4gsTZDjMWGWwFEcmLTYAuPC22rA3LwC.jpg

Run the Docker Desktop app

https://files.peakd.com/file/peakd-hive/hanv/23tuzBMWgaWGyGVGeoWpmYdqmumEpHdSrkRGA681DosoxFXMruw6R5qYdVYx6onRcqQgs.jpg



Open Terminal Application

https://files.peakd.com/file/peakd-hive/hanv/23swiDo7nU5739XSU4LmBx143fBz6DR2rxmbzcrynM3ksBY6RLxG9A6w6so6k5etq9vM9.jpg

Check if Git is already installed.
run

git --version

https://files.peakd.com/file/peakd-hive/hanv/23tvVmPfF7jGHz4dGZHNiRX7LMXLiopg36vk3HQ1rv5FUXh7fhkdz3hWzejE1zLGgX1Ld.jpg


If Git is not installed, you'll need to install Homebrew first (if you don't already have it):
run

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install Git
run

brew install git

Run this command to create a folder where you'll install the validator files:

mkdir folder-name

cd folder-name

Install validator node files

run

bash -c "$(curl -s https://raw.githubusercontent.com/TheSPSDAO/SPS-Validator/refs/tags/vlatest/install.sh)"



https://files.peakd.com/file/peakd-hive/hanv/23tkhS9oyJztGE6LKCx7XJ5sFFagwvwX73rUmn7Y2ReVR84MueVS6N8gaDj3h622bD5nN.jpg

Type 1, you will get this error
Using production prefix...
sed: 1: ".env": invalid command code .

then run those

cd SPS-Validator

cp .env-example .env

nano .env

https://files.peakd.com/file/peakd-hive/hanv/23uQNa6vMnjjWqL5NZ6Q26zvheqvpct9hmYdZehatrqFDQr8juaPXsTbA7tTgB7MsjbWk.jpg


Edit the following settings in the .env file:

POSTGRES_PASSWORD= : The password you want to set
APP_PASSWORD= : The password you want to set
DB_BLOCK_RETENTION= : 432000
VALIDATOR_ACCOUNT= : your hive account name
VALIDATOR_KEY= : your hive account posting key


https://files.peakd.com/file/peakd-hive/hanv/23tbKPRzLHqAnjLFBnbV3g9gwGfioeebFkSkie2TJBYCtdKrYvNNyzXGjLxz861Qx6UFi.jpg

https://files.peakd.com/file/peakd-hive/hanv/23tbMYDnGb9QyqHZHYAnx5kmAMToT7SDQ7sAq5pmfY5suBFwF6QfEjkFg6UZi5rbrMrpj.jpg

control + x -> yes -> enter to save file

Build the validator

run

./run.sh build

  • This will deploy the database, run migrations, and download/deploy the snapshot
  • This process may take some time

https://files.peakd.com/file/peakd-hive/hanv/EoEiGgiJBHfUgoEoZPuyHF28Tux4UbeJkcNrCdCdWyMVHCUW9KCzhiimbqRrrte1ksP.jpg


Start the validator

run

./run.sh start all

This starts both the validator and the management UI
This process may take some time

https://files.peakd.com/file/peakd-hive/hanv/23tbGsQXRFdPHdQfandmND4t7qJqq62N3jrbjijwEdXCcErLDwf689rEjcniRNVSSTazN.jpg

You need to wait until the 'Blocks to head' value reaches 0 before your node can begin validating blocks.

https://files.peakd.com/file/peakd-hive/hanv/Eo45poux58pj3Eg4CDhLby682C8HbAm431Qt5aVp3tuntgLAVdsJ3Rg1f3hFbAUAfMW.jpg



Wait 'Blocks to head' value reaches 0.

Manage and Register your Validator

Register Your Node

Once your node is fully synced (Blocks to head: 0),

Navigate to the management UI at https://localhost:8888/
Go to the "Manage Validator Nodes" section

https://files.peakd.com/file/peakd-hive/hanv/23tHbKgySNfQTRwJYr4Yr4E1gEUBxjQJo9qSPdiTQbShFzZRcKArCZVNmdB1BRf2mkTzG.jpg

You can skip API url, Post URL, Reward account
After registration and once your node synced the block (Blocks to head: 0), set your node to "active"

Stake Licenses for Rewards

To earn LICENSE rewards:

Go to https://splinterlands.com/dashboard/licenses
Click Activate and Stake Licenses

https://files.peakd.com/file/peakd-hive/hanv/23tRzfXraGCcvbXkNZWjvUYfwpBGZAv1rwKkAodkT268p6Bfy2Wxz7qoNWjYpnox2eTix.jpg

https://files.peakd.com/file/peakd-hive/hanv/23t7DiwnQZ9ef2aF18p8rBdvENoPGSotnEUNymarTrFJedPVPJwsNRgpLah89mMMMMoEU.jpg


Common Commands for Management

./run.sh stop: Stops all services
./run.sh start: Starts validator and database
./run.sh start all: Starts validator, database, and UI
./run.sh logs: Shows the validator logs
./run.sh rebuild_service validator: Rebuilds the validator to apply new environment variables (.env file)
./run.sh snapshot: Creates a backup of your database

Adjust the battery or power settings on your Mac to prevent it from automatically shutting down when not in use.

https://files.peakd.com/file/peakd-hive/hanv/Eo1wRwLcjdjDpu8MbwVxHHXbPE1hDiA5taKVfh731uMonSNvRnztjsmE3aK6UrPAazn.jpg

Congrat! Now your validator node is running and you are getting License block reward! 🎉

You just made the SPS chain stronger and more decentralized! 💪

If this helps, please consider voting for my node
https://monstermarket.io/validators?validator=hanv
Thank you!

Comments

Sort byBest