top of page

Gitopia

A new age decentralized code collaboration platform for developers to collaborate, BUIDL, and get rewarded

Chain ID: gitopia-janus-testnet-2

Website: gitopia.com

Public Endpoints:

✅ RPC

rpc.gitopia.ppnv.space:28657

✅ API / REST

 api.gitopia.ppnv.space 

✅ gRPC

grpc.gitopia.ppnv.space:28090

✅ gRPC Web

grpc.gitopia.ppnv.space:28091

Genesis:

curl -Ls https://service.ppnv.space/gitopia/genesis.json > $HOME/.gitopia/config/genesis.json

Peering:

✅ Seed Node

✅ Live Peers

d48a95dffa507f31dd54359ea47fe02c16ac14c7@​rpc.gitopia.ppnv.space:28656

✅ Addrbook #update every hour

curl -Ls https://service.ppnv.space/gitopia/addrbook.json > $HOME/.gitopia/config/addrbook.json

✅ State Sync #snapshot-interval = 1000

sudo systemctl stop gitopiad
cp $HOME/.gitopia/data/priv_validator_state.json $HOME/.gitopia/priv_validator_state.json.backup
gitopiad tendermint unsafe-reset-all --home $HOME/.gitopia
STATE_SYNC_RPC=http://rpc.gitopia.ppnv.space:28657
STATE_SYNC_PEER=d48a95dffa507f31dd54359ea47fe02c16ac14c7@​rpc.gitopia.ppnv.space:28656
LATEST_HEIGHT=$(curl -s $STATE_SYNC_RPC/block | jq -r .result.block.header.height)
SYNC_BLOCK_HEIGHT=$(($LATEST_HEIGHT - 1000))
SYNC_BLOCK_HASH=$(curl -s "$STATE_SYNC_RPC/block?height=$SYNC_BLOCK_HEIGHT" | jq -r .result.block_id.hash)
sed -i.bak -e "s|^enable *=.*|enable = true|" $HOME/.gitopia/config/config.toml
sed -i.bak -e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \
  $HOME/.gitopia/config/config.toml
sed -i.bak -e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \
  $HOME/.gitopia/config/config.toml
sed -i.bak -e "s|^trust_hash *=.*|trust_hash = \"$SYNC_BLOCK_HASH\"|" \
  $HOME/.gitopia/config/config.toml
sed -i.bak -e "s|^persistent_peers *=.*|persistent_peers = \"$STATE_SYNC_PEER\"|" \
  $HOME/.gitopia/config/config.toml
mv $HOME/.gitopia/priv_validator_state.json.backup $HOME/.gitopia/data/priv_validator_state.json
sudo systemctl restart gitopiad && journalctl -u gitopiad -f --no-hostname -o cat

bottom of page