Humans Testnet-1
Memory: 8 GB RAM
CPU: Quad-Core
Disk: 250 GB SSD Storage
Bandwidth: 1 Gbps for Download / 100 Mbps for Upload
sudo apt update && sudo apt upgrade -y
sudo apt install curl tar wget tmux htop net-tools clang pkg-config libssl-dev jq build-essential git screen make ncdu -y
cd $HOME
wget -O go1.18.4.linux-amd64.tar.gz https://golang.org/dl/go1.18.4.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.4.linux-amd64.tar.gz && rm go1.18.4.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/humansdotai/humans
cd humans
git checkout v1.0.0
go build -o humansd cmd/humansd/main.go
mv humansd /usr/local/go/bin
- monikerismi belirlemeyi unutmayın
humansd init monikerismi
curl -s https://rpc-testnet.humans.zone/genesis | jq -r .result.genesis > genesis.json
mv genesis.json $HOME/.humans/config
wget -O $HOME/.humans/config/addrbook.json "https://raw.githubusercontent.com/sergiomateiko/addrbooks/main/humans/addrbook.json"
PEERS="[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656"
sed -i 's|^persistent_peers *=.*|persistent_peers = "'$PEERS'"|' $HOME/.humans/config/config.toml
sed -i 's/minimum-gas-prices =.*/minimum-gas-prices = "0.025uheart"/g' $HOME/.humans/config/app.toml
CONFIG_TOML="$HOME/.humans/config/config.toml"
sed -i 's/timeout_propose =.*/timeout_propose = "100ms"/g' $CONFIG_TOML
sed -i 's/timeout_propose_delta =.*/timeout_propose_delta = "500ms"/g' $CONFIG_TOML
sed -i 's/timeout_prevote =.*/timeout_prevote = "100ms"/g' $CONFIG_TOML
sed -i 's/timeout_prevote_delta =.*/timeout_prevote_delta = "500ms"/g' $CONFIG_TOML
sed -i 's/timeout_precommit =.*/timeout_precommit = "100ms"/g' $CONFIG_TOML
sed -i 's/timeout_precommit_delta =.*/timeout_precommit_delta = "500ms"/g' $CONFIG_TOML
sed -i 's/timeout_commit =.*/timeout_commit = "1s"/g' $CONFIG_TOML
sed -i 's/skip_timeout_commit =.*/skip_timeout_commit = false/g' $CONFIG_TOML
- bu kısım opsiyonel. disk kullanımını düşürür aynı zamanda cpu ve ram kullanımını arttırır
pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="50"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.humans/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.humans/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.humans/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.humans/config/app.toml
indexer="null"
sed -i -e "s/^indexer *=.*/indexer = \"$indexer\"/" $HOME/.humans/config/config.toml
sudo tee /etc/systemd/system/humansd.service > /dev/null <<EOF
[Unit]
Description=humans node
After=network.target
[Service]
User=root
Type=simple
ExecStart=$(which humansd) start --home $HOME/.humans
Restart=on-failure
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable humansd
systemctl start humansd
systemctl status humansd
journalctl -u humansd -fo cat
güncel blok yüksekliğini takip etmek için: explorer
- bu komutta
"catching_up": false
çıktısı senkronize olduğunu gösterir
humansd status 2>&1 | jq .SyncInfo
- cüzdanismini belirlemeyi unutmayın
humansd keys add cüzdanismi
humansd q bank balances cüzdanadresi
cüzdanismi
vemonikerismi
değiştirmeyi unutmayın
humansd tx staking create-validator \
--amount 9000000uheart \
--from cüzdamismi \
--commission-max-change-rate "0.01" \
--commission-max-rate "0.2" \
--commission-rate "0.07" \
--min-self-delegation "1" \
--pubkey $(humansd tendermint show-validator) \
--moniker monikerismi \
--chain-id testnet-1 \
--fees 5050uheart
sudo systemctl stop humansd
sudo systemctl disable humansd
rm -rf /etc/systemd/system/humansd.service
sudo rm -rf $(which humansd)
sudo rm -rf $HOME/.humansd
sudo rm -rf $HOME/humansd
yararlı komutlar: link