GithubHelp home page GithubHelp logo

humans's Introduction

Humans

Humans Testnet-1

sistem gereksinimleri (resmi dökümanda yazanlar)

Memory: 8 GB RAM
CPU: Quad-Core
Disk: 250 GB SSD Storage
Bandwidth: 1 Gbps for Download / 100 Mbps for Upload

sunucu güncellemesi

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

go

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

binary kurulumu

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

initalize

  • monikerismi belirlemeyi unutmayın
humansd init monikerismi

genesis ve addrbook

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"

yapılandırma dosyası

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

pruning ve indexer

  • 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

systemd

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

service durumu

systemctl status humansd

logları görüntülemek

journalctl -u humansd -fo cat

validatör oluşturmak için nodun ağ ile senkronize olmasını beklemek gerekiyor.

güncel blok yüksekliğini takip etmek için: explorer

senkronizasyon durumu

  • bu komutta "catching_up": false çıktısı senkronize olduğunu gösterir
humansd status 2>&1 | jq .SyncInfo

cüzdan

  • cüzdanismini belirlemeyi unutmayın
humansd keys add cüzdanismi

cüzdan bakiyesi kontrol

humansd q bank balances cüzdanadresi

senkronizasyon tamamlandıysa artık validatör oluşturabilirsiniz

  • cüzdanismive monikerismi 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 250uheart

node silmek için

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

website

explorer

türkçe telegram

twitter

discord

humans's People

Contributors

0xsocrates 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.