Giter VIP home page Giter VIP logo

crowd-control-kurulum-rehberi's Introduction

Crowd Control Cardchain Testnet1 Kurulum Rehberi

image

Gereksinimler (Minimum)

  • 2 CPU
  • 4GB RAM
  • 50 GB SSD

Sistemi Güncelleme

sudo apt update && sudo apt upgrade -y

Gerekli Kütüphanelerin Kurulması

sudo apt install curl make build-essential gcc tmux jq chrony htop -y < "/dev/null"

Go Kurulumu

ver="1.18.3"
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
rm -rf /usr/local/go
tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm -rf "go$ver.linux-amd64.tar.gz"
echo 'export GOROOT=/usr/local/go' >> $HOME/.bash_profile
echo 'export GOPATH=$HOME/go' >> $HOME/.bash_profile
echo 'export GO111MODULE=on' >> $HOME/.bash_profile
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> $HOME/.bash_profile
source $HOME/.bash_profile
go version

Değişkenleri Yükleme

aşağıda değiştirmeniz gereken yerleri yazıyorum.

  • '$NODENAME' validator adınız
  • '$WALLET' cüzdan adınız
echo "export NODENAME=$NODENAME"  >> $HOME/.bash_profile
echo "export WALLET=$WALLET" >> $HOME/.bash_profile
echo "export CHAIN_ID=Cardchain" >> $HOME/.bash_profile
source $HOME/.bash_profile

Örnek

Node ve Cüzdan adımızın Mehmet olduğunu varsayalım. Kod aşağıdaki şekilde düzenlenecektir.

echo "export NODENAME=Mehmet"  >> $HOME/.bash_profile
echo "export WALLET=Mehmet" >> $HOME/.bash_profile
echo "export CHAIN_ID="Cardchain >> $HOME/.bash_profile
source $HOME/.bash_profile

Cardchain Kurulumu

curl https://get.ignite.com/DecentralCardGame/Cardchain@latest! | sudo bash

Uygulamayı Yapılandırma

Cardchain config chain-id $CHAIN_ID
Cardchain config keyring-backend test

Uygulamayı Başlatma

Cardchain init $NODENAME --chain-id $CHAIN_ID

Genesis ve Addrbook Dosyalarının İndirilmesi

cp $HOME/Testnet1/genesis.json $HOME/.Cardchain/config/genesis.json

Minimum GAS Ücretinin Ayarlanması

sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0ubpf\"/" $HOME/.Cardchain /config/app.toml

SEED ve PEERS Ayarlanması

sed -i -e "/persistent_peers =/ s/= .*/= \"[email protected]:26658\"/"  $HOME/.Cardchain/config/config.toml

Prometheus'u Aktif Etme

sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.Cardchain /config/config.toml

Pruning'i Ayarlama

pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="50"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.Cardchain /config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.Cardchain /config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.Cardchain /config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.Cardchain /config/app.toml

Zincir Verilerini Sıfırlama

Cardchain tendermint unsafe-reset-all --home $HOME/.Cardchain 

Servis Dosyası Oluşturma

tee <<EOF >/dev/null /etc/systemd/system/Cardchaind.service
[Unit]
Description=Cardchain Daemon
After=network-online.target

[Service]
User=$USER
ExecStart=$(which Cardchain) start
Restart=always
RestartSec=10
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

Servisi Başlatma

systemctl daemon-reload
systemctl enable Cardchaind
systemctl restart Cardchaind

Logları Kontrol Etme

journalctl -u Cardchaind -f -o cat

Cüzdan Oluşturma

Yeni Cüzdan Oluşturma

$WALLET bölümünü değiştirmiyoruz kurulumun başında cüzdanımıza isim belirledik.

Cardchain keys add $WALLET

Var Olan Cüzdanı İçeri Aktarma

Cardchain keys add $WALLET --recover
  • BU AŞAMADAN SONRA NODE'UMUZUN EŞLEŞMESİNİ BEKLİYORUZ.

Faucet

Aşağıdaki kodda hata alırsanız buradan token isteyebilirsiniz.

KEY=$(Cardchain keys show CUZDAN_ADRESINIZ --output=json | jq .address -r)
curl -X POST https://cardchain.crowdcontrol.network/faucet/ -d "{\"address\": \"$KEY\"}"

Cüzdan Bakiyesini Kontrol Etme

Cardchain query bank balances CUZDAN_ADRESINIZ --chain-id $CHAIN_ID

Senkronizasyonu Kontrol Etme

false çıktısı almaldıkça bir sonraki yani validator oluşturma adımına geçmiyoruz.

Cardchain status 2&1  jq .SyncInfo

Validator Oluşturma

Aşağıdaki komutta aşağıda berlittiğim yerler dışında bir değişikli yapmanız gerekmez; 'identity' buraya httpskeybase.io sitesine üye olarak size verilen kimlik numaranızı yazıyorsunuz. 'details' kendiniz hakkında bilgiler verebilir ya da Rues Community Supporter yazabilirsiniz. 'website' Varsa bir siteniz yazabilirsiniz ya da httpsforum.rues.info olarak bırakabilirsiniz. 'security-contact' E-posta adresiniz.

Cardchain tx staking create-validator 
 --commission-max-change-rate=0.01 
 --commission-max-rate=0.2 
 --commission-rate=0.05 
 --amount 9900000ubpf 
 --pubkey=$(Cardchain tendermint show-validator) 
 --moniker=$NODENAME 
 --chain-id=$CHAIN_ID 
 --details=Rues Community Supporter 
 --security-contact=E-POSTANIZ 
 --website=httpsforum.rues.info 
 --identity=XXXX1111XXXX1111 
 --min-self-delegation=1000000 
 --from=$WALLET

Validator Linkinizi Paylaşma

Crowd Control Discord #validator kanalından validatorumuze ait explorer linkini gönderiyoruz.

DAHA FAZLA SORUNUZ VARSA CROWD CPNTROL TÜRKİYE TELEGRAM GRUBU

Stride Türkiye Telegram Sayfası

FAYDALI KOMUTLAR

Logları Kontrol Etme

journalctl -fu Cardchaind -o cat

Sistemi Başlatma

systemctl start Cardchaind

Sistemi Durdurma

systemctl stop Cardchaind

Sistemi Yeniden Başlatma

systemctl restart Cardchaind

Node Senkronizasyon Durumu

Cardchain status 2>&1 | jq .SyncInfo

Validator Bilgileri

Cardchain status 2>&1 | jq .ValidatorInfo

Node Bilgileri

Cardchain status 2>&1 | jq .NodeInfo

Node ID Öğrenme

Cardchain tendermint show-node-id

Node IP Adresini Öğrenme

curl icanhazip.com

Peer Adresinizi Öğrenme

echo $(Cardchain tendermint show-node-id)@$(curl ifconfig.me)16656

Cüzdanların Listesine Bakma

Cardchain keys list

Cüzdanı İçeri Aktarma

Cardchain keys add $WALLET --recover

Cüzdanı Silme

Cardchain keys delete CUZDAN_ADI

Cüzdan Bakiyesine Bakma

Cardchain query bank balances CUZDAN_ADRESI

Bir Cüzdandan Diğer Bir Cüzdana Transfer Yapma

Cardchain tx bank send CUZDAN_ADRESI GONDERILECEK_CUZDAN_ADRESI 100000000ubpf

Proposal Oylamasına Katılma

Cardchain tx gov vote 1 yes --from $WALLET --chain-id=CHAIN_ID 

Validatore Stake Etme Delegate Etme

Cardchain tx staking delegate $VALOPER_ADDRESS 100000000utoi --from=$WALLET --chain-id=C$HAIN_ID  --gas=auto

Mevcut Validatorden Diğer Validatore Stake Etme Redelegate Etme

Cardchain tx staking redelegate MevcutValidatorAdresi StakeEdilecekYeniValidatorAdresi 100000000ubpf --from=WALLET --chain-id=CHAIN_ID  --gas=auto

Ödülleri Çekme

Cardchain tx distribution withdraw-all-rewards --from=$WALLET --chain-id=CHAIN_ID  --gas=auto

Komisyon Ödüllerini Çekme

Cardchain tx distribution withdraw-rewards VALIDATOR_ADRESI --from=$WALLET --commission --chain-id=CHAIN_ID 

Validator İsmini Değiştirme

Cardchain tx staking edit-validator 
--moniker=YENI_NODE_ADI 
--chain-id=$CHAIN_ID  
--from=$WALLET

Validatoru Jail Durumundan Kurtarma

Cardchain tx slashing unjail 
  --broadcast-mode=block 
  --from=$WALLET 
  --chain-id=$CHAIN_ID  
  --gas=auto

Node'u Tamamen Silme

systemctl stop Cardchaind && 
systemctl disable Cardchaind && 
rm etc/systemd/system/Cardchaind.service && 
systemctl daemon-reload && 
cd $HOME && 
rm -rf .Cardchain Testnet1 && 
rm -rf $(which Cardchain)

Hesaplar

Linktree

Twitter

Rues Komunite

Forum Rues

Telegram Rues Announcement

Telegram Rues Chat

Telegram Rues Node

Telegram Rues Node Chat

crowd-control-kurulum-rehberi's People

Contributors

koltigin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.