Find answers instantly with AI search. Start typing your prompt below and let AI do the digging for you!

Joining the SSC Mainnet as a Full Node

Steps to Join as a Full Node Post-Genesis

  1. Initialize the sscd instance on this machine by running sscd init <moniker> --chain-id ssc-1. The init command also generates certain configuration files in the home directory for SSC (default ~/.ssc). Example:

sscd init fullnode --chain-id ssc-1
  1. Next, update persistent_peers information in ~/.ssc/config/config.toml using the persistent peers provided by the Saga team. You will update this in the P2P section of config.toml file.

sed -i "s|persistent_peers = \".*\"|persistent_peers = \"$(curl -s https://polkachu.com/api/v2/chains/saga/live_peers | jq -r '.live_peers | join(",")')\"|g" ~/.ssc/config/config.toml
sed -i 's/^max-recv-msg-size =.*/max-recv-msg-size = "100000000"/g' ~/.ssc/config/config.toml
  1. Copy the genesis.json file provided by the Saga team to ~/.ssc/config/, overwriting any existing genesis file in that location.

# fetch the genesis
wget -O genesis.json 'https://raw.githubusercontent.com/sagaxyz/mainnet/main/genesis/genesis.json'

# copy it to your ssc home directory
mv genesis.json ~/.ssc/config
  1. Create a systemd service for running sscd by executing the following command at the shell prompt.

cat <<EOF | sudo tee /etc/systemd/system/sscd.service
[Unit]
Description=sscd daemon
After=network-online.target

[Service]
User=$USER
Group=$USER
AmbientCapabilities=CAP_NET_BIND_SERVICE
ExecStart=$(which sscd) start --home $HOME/.ssc/
StandardOutput=append:/var/log/sscd/sscd.log
StandardError=append:/var/log/sscd/sscd_error.log
Restart=always
RestartSec=3
LimitNOFILE=4096

[Install]
WantedBy=multi-user.target
EOF
  1. Download the latest sscd snapshot from Polkachu's Saga Mainnet Snapshot page

  1. Now, we will reset all application settings to ensure we can use the snapshot we just downloaded.

  1. Now we will restore the the snapshot contents

  1. Now, start the sscd service

  1. Now, we can delete the snapshot file.

  1. Finally, check if the sscd service is running.

Last updated