Safe Block Docs
WebsiteSocialContact
  • 👋Welcome to Safe Block
  • 💡Infrastructure
  • 📤Contact
  • Mainnet Networks
    • Bitsong
      • Services
      • Guides
        • Installation
        • State Sync
        • Snapshot
    • Planq
      • Services
      • Guides
        • Installation
        • State Sync
        • Snapshot
    • Realio
      • Services
      • Guides
        • Installation
        • State Sync
        • Snapshot
    • Six Sigma Sports
      • Services
      • Guides
        • Installation
        • State Sync
        • Snapshot
Powered by GitBook
  1. Mainnet Networks
  2. Six Sigma Sports
  3. Guides

Installation

Install Pre Requisites
sudo apt update
sudo apt install git build-essential curl jq lz4 --yes

wget https://go.dev/dl/go1.19.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.19.linux-amd64.tar.gz
rm go1.19.linux-amd64.tar.gz

export PATH=$PATH:/usr/local/go/bin
cat <<EOF >> ~/.profile  
export GOPATH=$HOME/go  
export GO111MODULE=on  
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin  
EOF

source ~/.profile

go version

# OUTPUT
# go version go1.19 linux/amd64
Install SGE Node
git clone https://github.com/sge-network/sge
cd sge
git checkout v1.6.2
make install
sged version

# OUTPUT
# 1.6.2
Create Background Service
sudo tee /etc/systemd/system/sged.service > /dev/null << EOF

[Unit]
Description=Sge Node
After=network-online.target

[Service]
User=$USER
ExecStart=/home/$USER/go/bin/sged start
Restart=always
RestartSec=3
LimitNOFILE=10000

[Install]
WantedBy=multi-user.target
EOF
Enable SGE Node In Background
sudo systemctl enable sged
Initialize SGE Node
sged config chain-id sgenet-1
sged init "your node name" --chain-id sgenet-1
Set Gas Price
sed -i 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.0026usge"|g' $HOME/.sge/config/app.toml
Get Genesis
wget https://snapshot.safeblock.space/sge/genesis.json -P $HOME/.sge/config 

Start by StateSync or Snapshot

Start SGE Node
sudo systemctl start sged && sudo journalctl -fu sged -o cat

Last updated 12 months ago

State Sync
Snapshot