Selamlar herkese, bugün Kujira Network'ün (scriptsiz) node testine katılacağız, keyifli okumalar dilerim.
4 cpu
8 gb ram
200gb ssd
sudo apt-get update && sudo apt-get upgrade -y
sudo apt install build-essential git unzip curl wget
wget -O go1.18.1.linux-amd64.tar.gz https://golang.org/dl/go1.18.1.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.1.linux-amd64.tar.gz && rm go1.18.1.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 && . $HOME/.bash_profile
go version
git clone https://github.com/Team-Kujira/core $HOME/kujira-core
cd $HOME/kujira-core
make install
kujirad version
export CHAIN_ID=harpoon-3
export MONIKER_NAME="moniker-name"
kujirad init "${MONIKER_NAME}" --chain-id ${CHAIN_ID}
wget https://raw.githubusercontent.com/Team-Kujira/networks/master/testnet/harpoon-3.json -O $HOME/.kujira/config/genesis.json
wget https://raw.githubusercontent.com/Team-Kujira/networks/master/testnet/addrbook.json -O $HOME/.kujira/config/addrbook.json
apt-get install screen
screen -S kujira
Screen içinde kujira node'nu başlatıyoruz. ve sync olmasını bekliyoruz. sync olmadan validator kurmayın.
kujirad start
Sync olması için ulaşmanız gereken blok sayısı burada https://testnets.cosmosrun.info/kujira-harpoon-3/ yazıyor:
curl http://localhost:26657/status | jq .result.sync_info.catching_up
echo "[Unit]
Description=Kujirad Node
After=network.target
[Service]
User=$USER
Type=simple
ExecStart=$(which kujirad) start
Restart=on-failure
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target" > $HOME/kujirad.service
sudo mv $HOME/kujirad.service /etc/systemd/system
sudo tee <<EOF >/dev/null /etc/systemd/journald.conf
Storage=persistent
EOF
sudo systemctl daemon-reload
sudo systemctl enable kujirad
sudo systemctl start kujirad
systemctl status kujirad.service
Örnek: kujirad keys add rues
kujirad keys add
Faucetten cüzdana token talep ediyoruz. YOUR_WALLET_ADRESS Yazan yere kujira ile başlayan adresi yazıyoruz.
curl -X POST https://faucet.kujira.app/YOUR_WALLET_ADDRESS
export PUBKEY=$( kujirad tendermint show-validator)
kujirad tx staking create-validator --moniker="${MONIKER_NAME}" \
--amount=1000000ukuji \
--gas-prices=1ukuji \
--pubkey=$PUBKEY \
--from="YOURNAME" \
--yes \
--node=tcp://localhost:26657 \
--chain-id=${CHAIN_ID} \
--commission-max-change-rate=0.01 \
--commission-max-rate=0.20 \
--commission-rate=0.10 \
--min-self-delegation=1
Son olarak https://testnets.cosmosrun.info/kujira-harpoon-3/ kendimizi kontrol edelim.
Teşekkürler..