Source

Endpoints

Genesis: https://source.declab.pro/genesis.json

wget -O ~/.source/config/genesis.json https://source.declab.pro/genesis.json --inet4-only

Addrbook: https://source.declab.pro/addrbook.json

wget -O ~/.source/config/addrbook.json https://source.declab.pro/addrbook.json --inet4-only

Peer: [email protected]:26606

[email protected]:26606,[email protected]:26656,[email protected]:30656,[email protected]:26656,[email protected]:26656,[email protected]:25656
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" ~/.source/config/config.toml

Snapshot

Link: https://source.declab.pro/latest.tar.lz4

# Reset tendermint chain
sourced tendermint unsafe-reset-all

# Download and unpack the archive
curl -o - -L https://source.declab.pro/latest.tar.lz4 | lz4 -c -d - | tar -x -C ~/.source

State sync

RPC="https://source.declab.pro:26604"

LATEST_HEIGHT=$(curl -s $RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \
TRUST_HASH=$(curl -s "$RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)

sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$RPC,$RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" ~/.source/config/config.toml

Last updated

Was this helpful?