Skip to content

bangpateng/gitopia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Join our telegram Visit our website

penyiapan node gitopia untuk testnet — gitopia-janus-testnet-2

Dokumentasi resmi:

Explorer :

Persyaratan Perangkat Keras

Seperti rantai Cosmos-SDK lainnya, persyaratan perangkat kerasnya cukup sederhana.

Persyaratan Perangkat Keras Minimum

  • 4x CPU; semakin cepat kecepatan jam semakin baik -RAM 8GB
  • Penyimpanan 100GB (SSD atau NVME)
  • Koneksi Internet permanen (lalu lintas akan minimal selama testnet; 10Mbps akan banyak - untuk produksi diharapkan setidaknya 100Mbps)

Persyaratan Perangkat Keras yang Direkomendasikan

  • 8x CPU; semakin cepat kecepatan jam semakin baik -RAM 64GB
  • Penyimpanan 1TB (SSD atau NVME)
  • Koneksi Internet permanen (lalu lintas akan minimal selama testnet; 10Mbps akan banyak - untuk produksi diharapkan setidaknya 100Mbps)

Siapkan gitopia fullnode Anda

Opsi 1 (otomatis)

Anda dapat mengatur gitopia fullnode Anda dalam beberapa menit dengan menggunakan skrip otomatis di bawah ini. Ini akan meminta Anda untuk memasukkan nama simpul validator Anda!

wget -O gitopia.sh https://raw.githubusercontent.com/bangpateng/gitopia/main/gitopia.sh && chmod +x gitopia.sh && ./gitopia.sh

Pasang instalasi

Saat instalasi selesai, silakan muat variabel ke dalam sistem

source $HOME/.bash_profile

Selanjutnya Anda harus memastikan validator Anda menyinkronkan blok. Anda dapat menggunakan perintah di bawah ini untuk memeriksa status sinkronisasi

gitopiad status 2>&1 | jq .SyncInfo

Create wallet

Membuat Wallet baru dan Backup Address dan Pharse Anda

gitopiad keys add $WALLET

(OPTIONAL) Jika Anda Mempunyai Wallet Sebelumnya, Silahkan Import Pharse

gitopiad keys add $WALLET --recover

To get current list of wallets

gitopiad keys list

Save Info Wallet

Add wallet and valoper address into variables

GITOPIA_WALLET_ADDRESS=$(gitopiad keys show $WALLET -a)
GITOPIA_VALOPER_ADDRESS=$(gitopiad keys show $WALLET --bech val -a)
echo 'export GITOPIA_WALLET_ADDRESS='${GITOPIA_WALLET_ADDRESS} >> $HOME/.bash_profile
echo 'export GITOPIA_VALOPER_ADDRESS='${GITOPIA_VALOPER_ADDRESS} >> $HOME/.bash_profile
source $HOME/.bash_profile

Fund your wallet

  • Import Validator Pharse Wallet Kalian ke Kepler
  • Open Web : https://gitopia.com/
  • Connect Wallet
  • Get 10 Tlore Done

SNAPSHOOT (Form KjNodes) Buat Loncat Ke Block Saat Ini

Stop Layanan dan Reset

sudo systemctl stop gitopiad
cp $HOME/.gitopia/data/priv_validator_state.json $HOME/.gitopia/priv_validator_state.json.backup
rm -rf $HOME/.gitopia/data

Download Snapshoot Terbaru (Size File 880 MB)

curl -L https://snapshots.kjnodes.com/gitopia-testnet/snapshot_latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.gitopia
mv $HOME/.gitopia/priv_validator_state.json.backup $HOME/.gitopia/data/priv_validator_state.json

Muat Ulang Layanan dan Periksa Block

sudo systemctl start gitopiad && journalctl -u gitopiad -f --no-hostname -o cat

Membuat validator

Before creating validator please make sure that you have at least 1 tlore (1 tlore is equal to 1000000 utlore) and your node is synchronized

To check your wallet balance:

gitopiad query bank balances $GITOPIA_WALLET_ADDRESS

If your wallet does not show any balance than probably your node is still syncing. Please wait until it finish to synchronize and then continue To create your validator run command below

gitopiad tx staking create-validator \
  --amount 1000000utlore \
  --from $WALLET \
  --commission-max-change-rate "0.01" \
  --commission-max-rate "0.2" \
  --commission-rate "0.07" \
  --min-self-delegation "1" \
  --pubkey  $(gitopiad tendermint show-validator) \
  --moniker $NODENAME \
  --chain-id $GITOPIA_CHAIN_ID

Check your validator key

[[ $(gitopiad q staking validator $GITOPIA_VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(gitopiad status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "\n\e[1m\e[32mTrue\e[0m\n" || echo -e "\n\e[1m\e[31mFalse\e[0m\n"

Get list of validators

gitopiad q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl

Get currently connected peer list with ids

curl -sS http://localhost:${GITOPIA_PORT}657/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'

Kumpulan Perintah Yang Berguna (Optional)

Service management

Check logs

journalctl -fu gitopiad -o cat

Start service

sudo systemctl start gitopiad

Stop service

sudo systemctl stop gitopiad

Restart service

sudo systemctl restart gitopiad

Node info

Synchronization info

gitopiad status 2>&1 | jq .SyncInfo

Validator info

gitopiad status 2>&1 | jq .ValidatorInfo

Node info

gitopiad status 2>&1 | jq .NodeInfo

Show node id

gitopiad tendermint show-node-id

Wallet operations

List of wallets

gitopiad keys list

Recover wallet

gitopiad keys add $WALLET --recover

Delete wallet

gitopiad keys delete $WALLET

Get wallet balance

gitopiad query bank balances $GITOPIA_WALLET_ADDRESS

Transfer funds

gitopiad tx bank send $GITOPIA_WALLET_ADDRESS <TO_GITOPIA_WALLET_ADDRESS> 10000000utlore

Voting

gitopiad tx gov vote 1 yes --from $WALLET --chain-id=$GITOPIA_CHAIN_ID

Staking, Delegation and Rewards

Delegate stake

gitopiad tx staking delegate $GITOPIA_VALOPER_ADDRESS 10000000utlore --from=$WALLET --chain-id=$GITOPIA_CHAIN_ID --gas=auto

Redelegate stake from validator to another validator

gitopiad tx staking redelegate <srcValidatorAddress> <destValidatorAddress> 10000000utlore --from=$WALLET --chain-id=$GITOPIA_CHAIN_ID --gas=auto

Withdraw all rewards

gitopiad tx distribution withdraw-all-rewards --from=$WALLET --chain-id=$GITOPIA_CHAIN_ID --gas=auto

Withdraw rewards with commision

gitopiad tx distribution withdraw-rewards $GITOPIA_VALOPER_ADDRESS --from=$WALLET --commission --chain-id=$GITOPIA_CHAIN_ID

Validator management

Edit validator

gitopiad tx staking edit-validator \
  --moniker=$NODENAME \
  --identity=<your_keybase_id> \
  --website="<your_website>" \
  --details="<your_validator_description>" \
  --chain-id=$GITOPIA_CHAIN_ID \
  --from=$WALLET

Unjail validator

gitopiad tx slashing unjail \
  --broadcast-mode=block \
  --from=$WALLET \
  --chain-id=$GITOPIA_CHAIN_ID \
  --gas=auto

Hapus Node

This commands will completely remove node from server. Use at your own risk!

sudo systemctl stop gitopiad
sudo systemctl disable gitopiad
sudo rm /etc/systemd/system/gitopia* -rf
sudo rm $(which gitopiad) -rf
sudo rm $HOME/.gitopia* -rf
sudo rm $HOME/gitopia -rf
sed -i '/GITOPIA_/d' ~/.bash_profile

About

Tutorial Testnet Gitopia Incentivized

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages