logo

Sifchain Betanet guide

Clone this repository git clone

https://github.com/Sifchain/sifchain-validators.git

Don’t forget to check latest version at Github Page

git checkout v0.13.3 && make clean install

Set up cosmovisor

go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor@v1.0.0

mkdir -p "${HOME}"/.sifnoded/cosmovisor/genesis/bin
mkdir "${HOME}"/.sifnoded/cosmovisor/upgrades
cp "${GOPATH}"/bin/sifnoded "${HOME}"/.sifnoded/cosmovisor/genesis/bin

export DAEMON_HOME="${HOME}"/.sifnoded
export DAEMON_RESTART_AFTER_UPGRADE=true
export DAEMON_ALLOW_DOWNLOAD_BINARIES=false
export DAEMON_NAME=sifnoded
export UNSAFE_SKIP_BACKUP=true

Initialize your node

sifnoded init <moniker> --chain-id <chain_id>

Download the latest genesis

cd "${HOME}"/.sifnoded/config
wget -O genesis.json.gz https://raw.githubusercontent.com/Sifchain/networks/master/betanet/sifchain-1/genesis.json.gz
gunzip genesis.json.gz

Setup the persistent peers

sed -i "s/persistent_peers =.*/persistent_peers = \"0d4981bdaf4d5d73bad00af3b1fa9d699e4d3bc0@44.235.108.41:26656,bcc2d07a14a8a0b3aa202e9ac106dec0bef91fda@13.55.247.60:26656,663dec65b754aceef5fcccb864048305208e7eb2@34.248.110.88:26656,0120f0a48e7e81cc98829ef4f5b39480f11ecd5a@52.76.185.17:26656\"/g" "${HOME}"/.sifnoded/config/config.toml

Download latest snapshots or use our State Sync server

snapshot=$(echo "sifchain_$(TZ=GMT date +'%Y-%m-%d').tar")
cd "${HOME}"/.sifnoded/data
wget -O sifchain.tar http://135.181.60.250:8081/sifchain/"${snapshot}"

Start your node

cosmovisor start