Giter Site home page Giter Site logo

stafihub-testnet's Introduction

StaFiHub Public Testnet 3

Selamlar herkese, bugün uzun süredir içinde olduğumuz StaFiHub'un public validator testine katılacağız, daha önce katılmadıysanızda dahil olabilirsiniz.

image

Öncelikle telegram kanalını bırakayım: https://t.me/StaFiHubTurkish

Not: Bu kaynağı sağ üstten forklamayı ve yıldızlamayı unutmayın, profiliniz katıldığınız testnetlerle dolu olsun.

Sistem gereksinimler: NOT: bence ücretsiz sunucuya kurun aşağıda purring ve index ayarlarını yaparak

8GB RAM
200 GB SSD
4 vCPU

Stafihub tesnet - 2 katılanlar öncelikle dosyalarını silsin:

sudo systemctl stop stafihubd && \
sudo systemctl disable stafihubd && \
rm /etc/systemd/system/stafihubd.service && \
sudo systemctl daemon-reload && \
cd $HOME && \
rm -rf .stafihub stafihub && \
rm -rf $(which stafihubd)

Başlıyoruz:

sudo su

root dizinine gidiyoruz:

cd /root

Sistem güncellemesi yapıyoruz:

sudo apt update && sudo apt upgrade -y

Kütüphane kurulumu yapıyoruz:

sudo apt install make clang pkg-config libssl-dev build-essential git jq ncdu bsdmainutils -y < "/dev/null"

Go kurulumu yapıyoruz:

cd $HOME
wget -O go1.18.2.linux-amd64.tar.gz https://go.dev/dl/go1.18.2.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.2.linux-amd64.tar.gz && rm go1.18.2.linux-amd64.tar.gz
echo 'export GOROOT=/usr/local/go' >> $HOME/.bashrc
echo 'export GOPATH=$HOME/go' >> $HOME/.bashrc
echo 'export GO111MODULE=on' >> $HOME/.bashrc
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> $HOME/.bashrc && . $HOME/.bashrc
go version

Stafi'nin github dosyasını klonluyoruz

git clone --branch public-testnet-v3 https://github.com/stafihub/stafihub

Kurulum:

cd $HOME/stafihub && make install

initialize işlemimi, nodename kısmına kendi isminizi girin

stafihubd init NodeName --chain-id stafihub-public-testnet-3

Genesis file indiriyoruz:

wget -O $HOME/.stafihub/config/genesis.json "https://raw.githubusercontent.com/stafihub/network/main/testnets/stafihub-public-testnet-3/genesis.json"

Node çin gerekli configurasyonları yapıyoruz:

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.01ufis\"/" $HOME/.stafihub/config/app.toml
sed -i '/\[grpc\]/{:a;n;/enabled/s/false/true/;Ta};/\[api\]/{:a;n;/enable/s/false/true/;Ta;}' $HOME/.stafihub/config/app.toml
peers="[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.stafihub/config/config.toml

Pruning açıyoruz. (Disk kullanımını düşürür - cpu ve ram kullanımı artar) (Kişisel Tercih)

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

İndexer kapatırız (Disk kullanımını düşürür) (Kişisel Tercih)

indexer="null"
sed -i -e "s/^indexer *=.*/indexer = \"$indexer\"/" $HOME/.stafihub/config/config.toml

Servis dosyası oluşturup node'umuzu başlatıyoruz

echo "[Unit]
Description=StaFiHub Node
After=network.target

[Service]
User=$USER
Type=simple
ExecStart=$(which stafihubd) start
Restart=on-failure
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target" > $HOME/stafihubd.service
sudo mv $HOME/stafihubd.service /etc/systemd/system
sudo tee <<EOF >/dev/null /etc/systemd/journald.conf
Storage=persistent
EOF
sudo systemctl restart systemd-journald
sudo systemctl daemon-reload
sudo systemctl enable stafihubd
sudo systemctl restart stafihubd

Cüzdan oluşturmak için. walletName kısmına kendi cüzdan isminizi yazın:

stafihubd keys add walletName

Eskiden katıldıysanız recover:

stafihubd keys add walletName --recover

Cüzdanı hallettikten sonra Faucet için: https://discord.gg/tz6USZWX

image

NOT: Peer listesi en güncel halde, bizzat 2 sunucuda denedik ve maks 10-15dk alıyor, eşleşemezseniz bile biraz zaman tanıyın lütfen.

Eşleşme komudu, bu komudu girdğinizde en altta false yazması lazım, örnek:

stafihubd status 2>&1 | jq .SyncInfo

Şu an true yazıyor:

image

Eşleşince: böyle bir çıktı alırsınız.

image

Validator oluşturma:

stafihubd tx staking create-validator \
--moniker="NodeName" \
--amount=48885000ufis \
--gas auto \
--fees=5000ufis \
--pubkey=$(stafihubd tendermint show-validator) \
--chain-id=stafihub-public-testnet-3 \
--commission-max-change-rate=0.01 \
--commission-max-rate=0.20 \
--commission-rate=0.10 \
--min-self-delegation=1 \
--from=WalletName \
--yes

Oluştuktan sonra böyle bir çıktı gelir, tx hash'ı kopyalayıp explorerda aratın, succes demesi lazım.

image

image

Hesaplar:

Twitter

Forum

Telegram Announcement

Telegram Chat

Discord

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.