Giter Site home page Giter Site logo

Stratos Validator kurulum rehberi ⚛️

image

Stratos Türkiye Telegram grubu: Stratos Türkiye

Sistem gereksinimleri:

8GB RAM
160 GB SSD
4 vCPU

Validator kurulumu:

root yetkisi:

sudo su

root dizinine gidiyoruz:

cd /root

Sistem güncellemesi:

sudo apt update && sudo apt upgrade -y

Kütüphane kurulumu:

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

Binary dosya kurulumu:

cd $HOME
wget https://github.com/stratosnet/stratos-chain/releases/download/v0.8.0/stchaind

stchaind

md5sum stchain*

👉 Komutu girdikten sonra görselde ki gibi çıktı alıcaksınız

image

Binary dosyalarına execute yetkisi verelim

chmod +x stchaind

Altta ki komutu girdikten sonra görselde ki gibi çıktı alıyoruz.

ls

Sizde sadece schaind yazması yeterli, sui ve stratos-chain yazmayacak.

image

Go kurulumu

  • go version yazdığınızda 1.16+ üstü sürüm olmalı, genelde 1.18 çıkar.
wget -O go1.18.2.linux-amd64.tar.gz https://golang.org/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/.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 
go mod tidy

Source code ile binary dosyayı derliyoruz.

git clone https://github.com/stratosnet/stratos-chain.git
cd stratos-chain
git checkout v0.8.0
make build

👉 Hata alırsanız

  • Hata almazsanız bunları girmenıze gerek yok. (yüksek ihtimal hata almayacaksınız)
go mod tidy
sudo apt update
make build

Binary dosyalarını $GOPATH/bin dizinine yüklüyoruz:

cd ~/stratos-chain
make install

initialize işlemi yapıyoruz.

  • 👉 Node Name kısmını kendi validator isminizi girin 👈
cd $HOME
./stchaind init NodeName

genesis.json ve config.toml dosyalarını indiriyoruz:

wget https://raw.githubusercontent.com/stratosnet/stratos-chain-testnet/main/genesis.json
wget https://raw.githubusercontent.com/stratosnet/stratos-chain-testnet/main/config.toml

addrbook.json dosyasını indiriyoruz:

wget -O $HOME/.stchaind/config/addrbook.json "https://github.com/mmc6185/node-testnets/blob/main/stratos/stratos-tropos-4/addrbook.json?raw=true"

genesis.json ve config.toml dosyalarını .stchaind/config/ dizini altına taşıma işlemi:

mv config.toml $HOME/.stchaind/config/
mv genesis.json  $HOME/.stchaind/config/

servis dosyası :

echo "[Unit]
Description=Stratos Node
After=network.target
[Service]
User=$USER
Type=simple
ExecStart=$(which stchaind) start
Restart=on-failure
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target" > $HOME/stratosd.service
sudo mv $HOME/stratosd.service /etc/systemd/system
sudo tee <<EOF >/dev/null /etc/systemd/journald.conf
Storage=persistent
EOF

servisimizi aktifleştiriyoruz:

sudo systemctl restart systemd-journald
sudo systemctl daemon-reload
sudo systemctl enable stratosd
sudo systemctl restart stratosd

Node'umuzun loglarına bakıyoruz.

  • Görselde ki gibi loglar akıcak, 1-2-3 diye başlıyacak sizde.
journalctl -u stratosd -f

image

Şimdi explorere gidiyoruz: explorer linki

  • Sol üstte Latest Block yazıcak, güncel blok orası.
  • Birazdan false çıktısı komutunu gireceğiz
  • False çıktınız true yazacak, false olması için güncel bloğa gelmesi gerekiyor, örnek:
  • Eşleşmesi max 30-60 dakika arası sürer.
status 2>&1 | jq .SyncInfo

image

Şimdi o eşleşirken biz cüzdan oluşturalım:

  • WalletName kısmını kendı cüzdan adınız yapın!
  • Çıkan bilgileri not edin en altta 12 kelımenız olacak o da dahil.
stchaind keys add --hd-path "m/44'/606'/0'/0/0" --keyring-backend test  WalletName

Faucetten token alalım

  • WalletAdres kısmını kaldırın ve cüzdan adresinizi yazın, tırnakları kaldırmayın!
curl --header "Content-Type: application/json" --request POST --data '{"denom":"ustos","address":"walletAddress"} ' https://faucet-tropos.thestratos.org/credit

Bakalım tokenler gelmişmi

  • st1400.. kısmına kendi cüzdan adresinizi yazın
stchaind query bank balances st1400f6e4kes5sk0ltfz8ms74ga9wzd9dulchh5q

image

Validator oluşturma

  • NodeName kısmına validator ismimizi girin!
  • WalletAddres kısmına cüzdan adınızı girin!
stchaind tx staking create-validator \
--amount=100000000ustos \
--pubkey=$(stchaind tendermint show-validator) \
--moniker="NodeName" \
--chain-id=tropos-4  --keyring-backend=test --gas=auto -y \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--from=walletAddress \
--gas=auto -y

Explorerde kendimizi kontrol edelim:

image

Stratos Türkiye Telegram grubu: Stratos Türkiye

Reach out to me

zaferayan @zaferayan uc1vykhlufpaoghrwhjikrqg


ruesandora ruesandora0

GABBY's Projects

stratos-trapo-4 icon stratos-trapo-4

<h1 align="center">Stratos Validator kurulum rehberi :atom_symbol:</h1> ![image](https://user-images.githubusercontent.com/101149671/181047640-425da52b-6e1b-40d1-97b5-981de691937d.png) # Stratos Türkiye Telegram grubu: [Stratos Türkiye](https://t.me/StratosTurkish) ## Sistem gereksinimleri: ``` 8GB RAM 160 GB SSD 4 vCPU ``` <h1 align="center">Validator kurulumu:</h1> ## root yetkisi: ``` sudo su ``` ## root dizinine gidiyoruz: ``` cd /root ``` ## Sistem güncellemesi: ``` sudo apt update && sudo apt upgrade -y ``` ## Kütüphane kurulumu: ``` sudo apt install make clang pkg-config libssl-dev build-essential git jq ncdu bsdmainutils -y < "/dev/null" ``` ## Binary dosya kurulumu: ``` cd $HOME wget https://github.com/stratosnet/stratos-chain/releases/download/v0.8.0/stchaind ``` ## stchaind ``` md5sum stchain* ``` ### :point_right: Komutu girdikten sonra görselde ki gibi çıktı alıcaksınız ![image](https://user-images.githubusercontent.com/101149671/181049516-5dcdc3cf-b3f0-4a06-815b-e63aa10a0ee3.png) ## Binary dosyalarına execute yetkisi verelim ``` chmod +x stchaind ``` ## Altta ki komutu girdikten sonra görselde ki gibi çıktı alıyoruz. ``` ls ``` ### Sizde sadece schaind yazması yeterli, sui ve stratos-chain yazmayacak. ![image](https://user-images.githubusercontent.com/101149671/181049915-ed70387d-5f13-480e-9dfe-968a00426923.png) ## Go kurulumu * go version yazdığınızda 1.16+ üstü sürüm olmalı, genelde 1.18 çıkar. ``` wget -O go1.18.2.linux-amd64.tar.gz https://golang.org/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/.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 go mod tidy ``` ## Source code ile binary dosyayı derliyoruz. ``` git clone https://github.com/stratosnet/stratos-chain.git cd stratos-chain git checkout v0.8.0 make build ``` #### :point_right: Hata alırsanız * Hata almazsanız bunları girmenıze gerek yok. (yüksek ihtimal hata almayacaksınız) ``` go mod tidy sudo apt update make build ``` ## Binary dosyalarını $GOPATH/bin dizinine yüklüyoruz: ``` cd ~/stratos-chain make install ``` ## initialize işlemi yapıyoruz. * :point_right: Node Name kısmını kendi validator isminizi girin :point_left: ``` cd $HOME ./stchaind init NodeName ``` ## genesis.json ve config.toml dosyalarını indiriyoruz: ``` wget https://raw.githubusercontent.com/stratosnet/stratos-chain-testnet/main/genesis.json wget https://raw.githubusercontent.com/stratosnet/stratos-chain-testnet/main/config.toml ``` ## addrbook.json dosyasını indiriyoruz: ``` wget -O $HOME/.stchaind/config/addrbook.json "https://github.com/mmc6185/node-testnets/blob/main/stratos/stratos-tropos-4/addrbook.json?raw=true" ``` ## genesis.json ve config.toml dosyalarını .stchaind/config/ dizini altına taşıma işlemi: ``` mv config.toml $HOME/.stchaind/config/ mv genesis.json $HOME/.stchaind/config/ ``` ## servis dosyası : ``` echo "[Unit] Description=Stratos Node After=network.target [Service] User=$USER Type=simple ExecStart=$(which stchaind) start Restart=on-failure LimitNOFILE=65535 [Install] WantedBy=multi-user.target" > $HOME/stratosd.service sudo mv $HOME/stratosd.service /etc/systemd/system sudo tee <<EOF >/dev/null /etc/systemd/journald.conf Storage=persistent EOF ``` ## servisimizi aktifleştiriyoruz: ``` sudo systemctl restart systemd-journald sudo systemctl daemon-reload sudo systemctl enable stratosd sudo systemctl restart stratosd ``` ## Node'umuzun loglarına bakıyoruz. * Görselde ki gibi loglar akıcak, 1-2-3 diye başlıyacak sizde. ``` journalctl -u stratosd -f ``` ![image](https://user-images.githubusercontent.com/101149671/181054052-5f6415e1-b513-4429-86b3-c5cc83b77807.png) ## Şimdi explorere gidiyoruz: [explorer linki](https://big-dipper-tropos.thestratos.org/) * Sol üstte Latest Block yazıcak, güncel blok orası. * Birazdan false çıktısı komutunu gireceğiz * False çıktınız true yazacak, false olması için güncel bloğa gelmesi gerekiyor, örnek: * Eşleşmesi max 30-60 dakika arası sürer. ``` status 2>&1 | jq .SyncInfo ``` ![image](https://user-images.githubusercontent.com/101149671/181054593-3a2eab44-1aa5-4efa-917f-d161e87130c0.png) ## Şimdi o eşleşirken biz cüzdan oluşturalım: * WalletName kısmını kendı cüzdan adınız yapın! * Çıkan bilgileri not edin en altta 12 kelımenız olacak o da dahil. ``` stchaind keys add --hd-path "m/44'/606'/0'/0/0" --keyring-backend test WalletName ``` ## Faucetten token alalım * WalletAdres kısmını kaldırın ve cüzdan adresinizi yazın, tırnakları kaldırmayın! ``` curl --header "Content-Type: application/json" --request POST --data '{"denom":"ustos","address":"walletAddress"} ' https://faucet-tropos.thestratos.org/credit ``` ## Bakalım tokenler gelmişmi * st1400.. kısmına kendi cüzdan adresinizi yazın ``` stchaind query bank balances st1400f6e4kes5sk0ltfz8ms74ga9wzd9dulchh5q ``` ![image](https://user-images.githubusercontent.com/101149671/181055881-b35c2aa7-d751-44ab-aaed-9a92381a2e62.png) ## Validator oluşturma * NodeName kısmına validator ismimizi girin! * WalletAddres kısmına cüzdan adınızı girin! ``` stchaind tx staking create-validator \ --amount=100000000ustos \ --pubkey=$(stchaind tendermint show-validator) \ --moniker="NodeName" \ --chain-id=tropos-4 --keyring-backend=test --gas=auto -y \ --commission-rate=0.10 \ --commission-max-rate=0.20 \ --commission-max-change-rate=0.01 \ --min-self-delegation=1 \ --from=walletAddress \ --gas=auto -y ``` ## Explorerde kendimizi kontrol edelim: ![image](https://user-images.githubusercontent.com/101149671/181056792-6b9c4fcf-df8d-4d13-94dd-4ae37b882550.png) # Stratos Türkiye Telegram grubu: [Stratos Türkiye](https://t.me/StratosTurkish) ## Reach out to me <a href="https://twitter.com/Ruesandora0" target="blank"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/twitter.svg" alt="zaferayan" height="30" width="40" /></a> <a href="https://medium.com/@ruesandora" target="blank"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/medium.svg" alt="@zaferayan" height="30" width="40" /></a> <a href="https://www.youtube.com/c/RuesYouTube" target="blank"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/youtube.svg" alt="uc1vykhlufpaoghrwhjikrqg" height="30" width="40" /></a> <br /> <p align="left"> <img src="https://komarev.com/ghpvc/?username=ruesandora&label=Profile%20views&color=0e75b6&style=flat" alt="ruesandora" /> <a href="https://twitter.com/ruesandora0" target="blank"><img src="https://img.shields.io/twitter/follow/ruesandora0?logo=twitter&style=for-the-badge" alt="ruesandora0" /></a> <img src="https://github-readme-stats.vercel.app/api?username=ruesandora&show_icons=true&theme=highcontrast" align="right" width="450" height="350" >

stride-g-ncelleme icon stride-g-ncelleme

<h1 align="center">Stride - Poll Party! </h1> ### Selamlar bugün Stride node testnetine katılacağız. SORULAR İÇİN: [Stride Türkiye](https://t.me/StrideTurkish) ![image](https://user-images.githubusercontent.com/101149671/180230551-dbc0d5f0-b087-483f-9e7a-95711a820209.png) # Sistem gereksinimleri, "benim" önerim, CPU-RAM kısmında ekibin önerisi daha yüksek: ``` 4 CPU 8 RAM 160 GB SSD ``` <h1 align="center"> SIFIRDAN KURULUM YAPACAKLAR İÇİN </h1> ## Kurulum: ``` wget -q -O stride.sh https://api.rues.info/stride.sh && chmod +x stride.sh && sudo /bin/bash stride.sh ``` ## Cüzdan oluşturma: (not edin kaydedin) ``` strided keys add <walletName> ``` ## Discordan test tokeni alma: [Discord Linki](https://discord.gg/4B4cbvCh) ![image](https://user-images.githubusercontent.com/101149671/180231116-4eaae21a-184c-4204-a3f1-e7ac945e1455.png) ## Validator oluşturma: * MONİKER ve FROM kısımlarını düzenleyin. ``` strided tx staking create-validator \ --amount=9900000ustrd \ --pubkey=$(strided tendermint show-validator) \ --moniker=RuesValidator \ --chain-id=STRIDE-TESTNET-2 \ --commission-rate="0.10" \ --commission-max-rate="0.20" \ --commission-max-change-rate="0.1" \ --min-self-delegation="1" \ --fees=250ustrd \ --gas=200000 \ --from=rues \ --website="http://forum.rues.info/" \ --details="https://linktr.ee/ruesandora0" \ -y ``` <h1 align="center"> DAHA ÖNCE VALİDATOR OLUŞTURANLAR İÇİN </h1> ## Tek kalemde hepsini kopyalayıp terminale yapıştırın: ``` sudo systemctl stop strided cd $HOME && rm -rf stride git clone https://github.com/Stride-Labs/stride.git cd stride git checkout 3cb77a79f74e0b797df5611674c3fbd000dfeaa1 make build sudo cp $HOME/stride/build/strided /usr/local/bin wget -O $HOME/.stride/config/addrbook.json "https://github.com/mmc6185/node-testnets/blob/main/stride/addrbook.json?raw=true" wget -qO $HOME/.stride/config/genesis.json "https://raw.githubusercontent.com/Stride-Labs/testnet/main/poolparty/genesis.json" SEEDS="c0b278cbfb15674e1949e7e5ae51627cb2a2d0a9@seedv2.poolparty.stridenet.co:26656 (http://c0b278cbfb15674e1949e7e5ae51627cb2a2d0a9@seedv2.poolparty.stridenet.co:26656/)" PEERS="[email protected]:21016,[email protected]:20086,[email protected]:26656,[email protected]:25656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26683,[email protected]:22656" sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.stride/config/config.toml sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" $HOME/.stride/config/config.toml strided tendermint unsafe-reset-all --home $HOME/.stride sudo systemctl start strided journalctl -fu strided -o cat ``` ## Eşleştikten sonra Validator oluşturun: * MONİKER ve FROM kısımlarını düzenleyin. ``` strided tx staking create-validator \ --amount=9900000ustrd \ --pubkey=$(strided tendermint show-validator) \ --moniker=RuesValidator \ --chain-id=STRIDE-TESTNET-2 \ --commission-rate="0.10" \ --commission-max-rate="0.20" \ --commission-max-change-rate="0.1" \ --min-self-delegation="1" \ --fees=250ustrd \ --gas=200000 \ --from=rues \ --website="http://forum.rues.info/" \ --details="https://linktr.ee/ruesandora0" \ -y ``` <h1 align="center"> Peer sorunu yaşarsanız tek komutta </h1> ### YUKARDA SORUN ALMAZSANIZ YAPMAYIN SIFIRDAN BAŞLARSINIZ. ``` sudo systemctl stop strided cd $HOME && rm -rf stride git clone https://github.com/Stride-Labs/stride.git cd stride git checkout 3cb77a79f74e0b797df5611674c3fbd000dfeaa1 make build sudo cp $HOME/stride/build/strided /usr/local/bin sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" $HOME/.stride/config/config.toml strided tendermint unsafe-reset-all --home $HOME/.stride SEEDS=""; \ PEERS="[email protected]:26656,0f45eac9af97f4b60d12fcd9e14a114f0c085491@stride-library.poolparty.stridenet.co:26656 (http://,0f45eac9af97f4b60d12fcd9e14a114f0c085491@stride-library.poolparty.stridenet.co:26656/)"; \ sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.stride/config/config.toml wget -O $HOME/.stride/config/addrbook.json "https://github.com/mmc6185/node-testnets/blob/main/stride/addrbook.json?raw=true" SNAP_RPC=https://stride-library.poolparty.stridenet.co:443 LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \ BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \ TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash) echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \ s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \ s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \ s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"| ; \ s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" $HOME/.stride/config/config.toml sudo systemctl restart strided && journalctl -u strided -f -o cat ```

sui-devnet icon sui-devnet

Ağustos ayında Sui ödüllü node testneti başlayacak. Şuan Devnete katılanlar discorda IP veriyor belki bir eleme yaparlar o yüzden devnete katılacağıö

woltzar icon woltzar

Config files for my GitHub profile.

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.