Joining the SSC Mainnet as a Full Node
Steps to Join as a Full Node Post-Genesis
Please ensure you have correctly installed all the prerequisite applications as detailed in the Installation page or else some of these commands will fail.
Initialize the
sscdinstance on this machine by runningsscd init <moniker> --chain-id ssc-1. Theinitcommand also generates certain configuration files in the home directory for SSC (default~/.ssc). Example:
sscd init fullnode --chain-id ssc-1Next, update
persistent_peersinformation in~/.ssc/config/config.tomlusing the persistent peers provided by the Saga team. You will update this in theP2Psection ofconfig.tomlfile.
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.tomlCopy the
genesis.jsonfile 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/configCreate a
systemdservice for runningsscdby executing the following command at the shell prompt.
You will need to use the
sudocommand and will need the appropriate level of access on the machine you are working on.Ensure that the binary
sscdis in the systemPATH
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
EOFDownload the latest
sscdsnapshot from Polkachu's Saga Mainnet Snapshot page
We are assuming that you are running a full node, instead of a validator node. Running a full node after bootstrapping it from the latest snapshot does not require us to backup any files. However, should you need to backup any files from the ~/.ssc folder and/or sub-folders, please do it at this time before proceeding.
Now, we will reset all application settings to ensure we can use the snapshot we just downloaded.
Now we will restore the the snapshot contents
Now, start the
sscdservice
Now, we can delete the snapshot file.
Finally, check if the
sscdservice is running.
Your full node will sync with the SSC network by replaying some of the transactions and blocks committed since the snapshot was taken, and will be ready for us one it is fully in sync with the SSC network.
Last updated