Chain ID: sgenet-1 | Node Version: v1.7.0
sudo apt update
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y
rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.22.3.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version
cd $HOME
rm -rf sge
git clone https://github.com/sge-network/sge
cd sge
git checkout v1.7.0
make install
sged version
Replace NodeName with your own moniker.
sged init NodeName --chain-id=sgenet-1
curl -Ls https://ss.sge.nodestake.top/genesis.json > $HOME/.sge/config/genesis.json
curl -Ls https://ss.sge.nodestake.top/addrbook.json > $HOME/.sge/config/addrbook.json
sudo tee /etc/systemd/system/sged.service > /dev/null <<EOF
[Unit]
Description=sged Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which sged) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable sged
SNAP_NAME=$(curl -s https://ss.sge.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss.sge.nodestake.top/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.sge
sudo systemctl restart sged
journalctl -u sged -f
If you have any questions, please reach out to our Discord
https://rpc.sge.nodestake.top
https://api.sge.nodestake.top
https://grpc.sge.nodestake.top:443
https://ss.sge.nodestake.top/genesis.json
curl -Ls https://ss.sge.nodestake.top/genesis.json > $HOME/.sge/config/genesis.json
https://ss.sge.nodestake.top/addrbook.json
curl -Ls https://ss.sge.nodestake.top/addrbook.json > $HOME/.sge/config/addrbook.json
sudo systemctl restart sged
journalctl -u sged -f
6a727128f427d166d90a1185c7965b178235aaee@rpc.sge.nodestake.top:666
seed="6a727128f427d166d90a1185c7965b178235aaee@rpc.sge.nodestake.top:666"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.sge/config/config.toml
sudo systemctl restart sged
journalctl -u sged -f
peers=$(curl -s https://ss.sge.nodestake.top/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.sge/config/config.toml
sudo systemctl restart sged
journalctl -u sged -f
sudo systemctl stop sged
sged tendermint unsafe-reset-all --home ~/.sge/ --keep-addr-book
SNAP_RPC="https://rpc.sge.nodestake.top:443"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" ~/.sge/config/config.toml
more ~/.sge/config/config.toml | grep 'rpc_servers'
more ~/.sge/config/config.toml | grep 'trust_height'
more ~/.sge/config/config.toml | grep 'trust_hash'
sudo systemctl restart sged
journalctl -u sged -f
sudo apt update
sudo apt-get install snapd lz4 -y
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" ~/.sge/config/config.toml
sudo systemctl stop sged
cp $HOME/.sge/data/priv_validator_state.json $HOME/.sge/priv_validator_state.json.backup
rm -rf $HOME/.sge/data
sged tendermint unsafe-reset-all --home ~/.sge/ --keep-addr-book
SNAP_NAME=$(curl -s https://ss.sge.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss.sge.nodestake.top/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.sge
mv $HOME/.sge/priv_validator_state.json.backup $HOME/.sge/data/priv_validator_state.json
sudo systemctl restart sged
journalctl -u sged -f
Get old Snapshots
If you have any questions, please reach out to our Discord
Chain ID: sge-network-4 | Node Version: v1.7.0
sudo apt update
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y
rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.22.3.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version
cd $HOME
rm -rf sge
git clone https://github.com/sge-network/sge
cd sge
git checkout v1.7.0
make install
sged version
Replace NodeName with your own moniker.
sged init NodeName --chain-id=sge-network-4
curl -Ls https://ss-t.sge.nodestake.top/genesis.json > $HOME/.sge/config/genesis.json
curl -Ls https://ss-t.sge.nodestake.top/addrbook.json > $HOME/.sge/config/addrbook.json
sudo tee /etc/systemd/system/sged.service > /dev/null <<EOF
[Unit]
Description=sged Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which sged) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable sged
SNAP_NAME=$(curl -s https://ss-t.sge.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss-t.sge.nodestake.top/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.sge
sudo systemctl restart sged
journalctl -u sged -f
If you have any questions, please reach out to our Discord
https://rpc-t.sge.nodestake.top
https://api-t.sge.nodestake.top
https://grpc-t.sge.nodestake.top
https://ss-t.sge.nodestake.top/genesis.json
curl -Ls https://ss-t.sge.nodestake.top/genesis.json > $HOME/.sge/config/genesis.json
https://ss-t.sge.nodestake.top/addrbook.json
curl -Ls https://ss-t.sge.nodestake.top/addrbook.json > $HOME/.sge/config/addrbook.json
sudo systemctl restart sged
journalctl -u sged -f
3bd257f89d0f31614088373902eebc941c224236@rpc-t.sge.nodestake.top:666
seed="3bd257f89d0f31614088373902eebc941c224236@rpc-t.sge.nodestake.top:666"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.sge/config/config.toml
sudo systemctl restart sged
journalctl -u sged -f
peers=$(curl -s https://ss-t.sge.nodestake.top/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.sge/config/config.toml
sudo systemctl restart sged
journalctl -u sged -f
sudo systemctl stop sged
sged tendermint unsafe-reset-all --home ~/.sge/ --keep-addr-book
SNAP_RPC="https://rpc-t.sge.nodestake.top:443"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"| ; \
s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" ~/.sge/config/config.toml
more ~/.sge/config/config.toml | grep 'rpc_servers'
more ~/.sge/config/config.toml | grep 'trust_height'
more ~/.sge/config/config.toml | grep 'trust_hash'
sudo systemctl restart sged
journalctl -u sged -f
We make the node snapshot every 6h
sudo apt update
sudo apt-get install snapd lz4 -y
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" ~/.sge/config/config.toml
sudo systemctl stop sged
cp $HOME/.sge/data/priv_validator_state.json $HOME/.sge/priv_validator_state.json.backup
rm -rf $HOME/.sge/data
sged tendermint unsafe-reset-all --home ~/.sge/ --keep-addr-book
SNAP_NAME=$(curl -s https://ss-t.sge.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss-t.sge.nodestake.top/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.sge
mv $HOME/.sge/priv_validator_state.json.backup $HOME/.sge/data/priv_validator_state.json
sudo systemctl restart sged
journalctl -u sged -f
If you have any questions, please reach out to our Discord