top of page

Crowd Control

Blockchain based trading card game where you can create your own cards!

Chain ID: Testnet3

Public Endpoints:

✅ RPC

rpc.crowd.ppnv.space:18657

✅ API / REST

 api.crowd.ppnv.space 

✅ gRPC

grpc.crowd.ppnv.space:18090

✅ gRPC Web

grpc.crowd.ppnv.space:18091

Genesis:

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

Peering:

✅ Seed Node

✅ Live Peers

✅ Addrbook #update every hour

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

✅ State Sync #snapshot-interval = 1000

sudo systemctl stop Cardchaind
cp $HOME/.Cardchain/data/priv_validator_state.json $HOME/.Cardchain/priv_validator_state.json.backup
Cardchaind unsafe-reset-all --home $HOME/.Cardchain

STATE_SYNC_RPC=http://rpc.crowd.ppnv.space:18657
STATE_SYNC_PEER=fd574cabfa6499479700a9d1008722e33519daad@rpc.crowd.ppnv.space:18656
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/.Cardchain/config/config.toml
sed -i.bak -e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \
  $HOME/.Cardchain/config/config.toml
sed -i.bak -e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \
  $HOME/.Cardchain/config/config.toml
sed -i.bak -e "s|^trust_hash *=.*|trust_hash = \"$SYNC_BLOCK_HASH\"|" \
  $HOME/.Cardchain/config/config.toml
sed -i.bak -e "s|^persistent_peers *=.*|persistent_peers = \"$STATE_SYNC_PEER\"|" \
  $HOME/.Cardchain/config/config.toml
mv $HOME/.Cardchain/priv_validator_state.json.backup $HOME/.Cardchain/data/priv_validator_state.json

sudo systemctl restart Cardchaind && journalctl -u Cardchaind -f --no-hostname -o cat

bottom of page