Clan Network için test ağları deposu
4GB RAM
50GB+ disk
2 vcpu
https://secretnodes.com/clan/chains/playstation-2
https://stake-testnet.clan.network/
sudo apt-get update && sudo apt upgrade -y
sudo apt install build-essential jq -y
wget https://go.dev/dl/go1.18.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.18.linux-amd64.tar.gz
cat <<EOF >> ~/.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 ~/.profile
Bu komutu girdiğiniz zaman aşağıda ki çıktıyı alırsınız, komut:
go version
Alacağınız çıktı:
go version go1.18 linux/amd64
wget https://github.com/ClanNetwork/clan-network/releases/download/v1.0.4-alpha/clan-network_v1.0.4-alpha_linux_amd64.tar.gz
sudo tar -C /usr/local/bin -zxvf clan-network_v1.0.4-alpha_linux_amd64.tar.gz
git clone https://github.com/ClanNetwork/clan-network
cd clan-network
git fetch origin --tags
git checkout v1.0.4-alpha
make install
Gerekli düzenlemeleri yapıyoruz: chainid - peer - monikername
CHAIN_ID=playstation-2
MONIKER_NAME="TEST"
CHAIN_REPO="https://raw.githubusercontent.com/ClanNetwork/testnets/main/$CHAIN_ID" && \
export PEERS="$(curl -s "$CHAIN_REPO/persistent-peers.txt")"
echo $PEERS
Örnek çıktı: [email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:56656,[email protected]:26656,[email protected]:26656
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0uclan\"/" ~/.clan/config/app.toml
cland init $MONIKER_NAME --chain-id=$CHAIN_ID
curl https://raw.githubusercontent.com/ClanNetwork/testnets/main/$CHAIN_ID/genesis.json > ~/.clan/config/genesis.json
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" ~/.clan/config/config.toml
Key name kısmını kendi ismimize göre düzenlemek lazım, örnek: cland keys add RUES , oluşan key bilgilerini kaydedin.
cland keys add <key-name>
apt-get install screen
screen -S clan
cland start
Screenden ctrl a d ile çıkıp işlemlerin arkada aktif olarak çalışması için service dosyası oluşturuyoruz:
sudo tee /etc/systemd/system/cland.service > /dev/null <<'EOF'
[Unit]
Description=Clan daemon
After=network-online.target
[Service]
User=<your-username>
ExecStart=/path/to/cland start
Restart=on-failure
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
EOF
sudo -S systemctl daemon-reload
sudo -S systemctl enable cland
sudo -S systemctl start cland
systemctl status cland
curl http://localhost:26657/status | jq .result.sync_info.catching_up
https://faucet-testnet.clan.network/
cland tx staking create-validator \
--amount 1000000000uclan \
--commission-max-change-rate "0.1" \
--commission-max-rate "0.20" \
--commission-rate "0.1" \
--min-self-delegation "1" \
--details "validators write bios too" \
--pubkey=$(cland tendermint show-validator) \
--moniker $MONIKER_NAME \
--chain-id $CHAIN_ID \
--gas-prices 0uclan \
--from <key-name>
https://t.me/RuesAnnouncement
https://t.me/RuesChat
https://t.me/RuesNode
https://t.me/RuesNodeChat
https://forum.rues.info/