GithubHelp home page GithubHelp logo

initia-node's Introduction

İnitia-Node

image

Website

Discord

Explorer

X-twitter

İnitia Form

Gereksimler CPU 6 RAM 16+ GB Storage 400 GB SSD System Ubuntu 22.04 OR 20.04

Önemli uyarı:node kurulumu bitirdikten sonra form doldurmayı unutmayınız ve discord giriniz...

Gereksimlerin yüklenmesi

sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y

GO Kurulumu

cd $HOME
VER="1.21.3"
wget "https://golang.org/dl/go$VER.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$VER.linux-amd64.tar.gz"
rm "go$VER.linux-amd64.tar.gz"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile
[ ! -d ~/go/bin ] && mkdir -p ~/go/bin

Dosyaların Çekilmesi-1.kod

git clone https://github.com/initia-labs/initia
cd initia
git checkout v0.2.15
make build

Dosyaların Çekilmesi-2.kod

mkdir -p $HOME/.initia/cosmovisor/genesis/bin
mv /root/initia/build/initiad $HOME/.initia/cosmovisor/genesis/bin/

System Link Dosyaları

sudo ln -s $HOME/.initia/cosmovisor/genesis $HOME/.initia/cosmovisor/current -f
sudo ln -s $HOME/.initia/cosmovisor/current/bin/initiad /usr/local/bin/initiad -f

Cosmovisor Yüklenme-(v1.5.0 son sürüm)

go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]

Servis Dosyasının Yüklenmesi ve Oluştırılması-1

sudo tee /etc/systemd/system/initiad.service > /dev/null << EOF
[Unit]
Description=initia node service
After=network-online.target

[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.initia"
Environment="DAEMON_NAME=initiad"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$HOME/.initia/cosmovisor/current/bin"

[Install]
WantedBy=multi-user.target
EOF

Servis Dosyasının Yüklenmesi ve Oluştırılması-2

sudo systemctl daemon-reload
sudo systemctl enable initiad.service

İnit-1.kod

initiad config set client chain-id initiation-1
initiad config set client node tcp://localhost:15657
initiad config set client keyring-backend test

İnit 2.kod (mutlaka NODE ADI yazılmalı)

initiad init NODEADINIZIYAZINIZ --chain-id initiation-1

Genesis Adresbook

rm ~/.initia/config/genesis.json
curl -Ls https://raw.githubusercontent.com/molla202/pokemon/main/genesis.json > $HOME/.initia/config/genesis.json
curl -Ls https://raw.githubusercontent.com/Core-Node-Team/Testnet-TR/main/Initia/addrbook.json > $HOME/.initia/config/addrbook.json

Port Ayarları-1

echo "export N_PORT="15"" >> $HOME/.bash_profile
source $HOME/.bash_profile

Port Ayarları-2

sed -i.bak -e "s%:1317%:${N_PORT}317%g;
s%:8080%:${N_PORT}080%g;
s%:9090%:${N_PORT}090%g;
s%:9091%:${N_PORT}091%g;
s%:8545%:${N_PORT}545%g;
s%:8546%:${N_PORT}546%g;
s%:6065%:${N_PORT}065%g" $HOME/.initia/config/app.toml

Port Ayarları-3

sed -i.bak -e "s%:26658%:${N_PORT}658%g;
s%:26657%:${N_PORT}657%g;
s%:6060%:${N_PORT}060%g;
s%:26656%:${N_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${N_PORT}656\"%;
s%:26660%:${N_PORT}660%g" $HOME/.initia/config/config.toml

Seed

SEEDS="cd69bcb00a6ecc1ba2b4a3465de4d4dd3e0a3db1@initia-testnet-seed.itrocket.net:51656"
PEERS="[email protected]:26656,[email protected]:14656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:14656,[email protected]:56116,[email protected]:26656,[email protected]:26656,[email protected]:14656,[email protected]:26656,[email protected]:15656,[email protected]:15656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:26019,[email protected]:26656,[email protected]:55656,[email protected]:15656,[email protected]:53456,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:28012,[email protected]:46656,[email protected]:26656,[email protected]:15674,[email protected]:14656,[email protected]:53456,[email protected]:26656,[email protected]:26656,[email protected]:14656,[email protected]:27656,[email protected]:13666,[email protected]:28656,[email protected]:26656,[email protected]:25756,[email protected]:26656,[email protected]:25756,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:14656,[email protected]:26656,[email protected]:26656,[email protected]:53456,[email protected]:15656,[email protected]:27656,[email protected]:14656,[email protected]:26656,[email protected]:26656,[email protected]:15656,[email protected]:15656,[email protected]:25756,[email protected]:46656,[email protected]:26656,[email protected]:26656,[email protected]:53456,[email protected]:14656,[email protected]:26656,[email protected]:26656,[email protected]:14656,[email protected]:14656,[email protected]:26656,[email protected]:26691,[email protected]:26656,[email protected]:25756,[email protected]:33656,[email protected]:25756,[email protected]:17256,[email protected]:33756,aee7083ab11910ba3f1b8126d1b3728f13f54943@initia-testnet-peer.itrocket.net:11656,[email protected]:11656,[email protected]:15656,[email protected]:15656,[email protected]:11656,[email protected]:656,[email protected]:51656,[email protected]:51656,[email protected]:36656,[email protected]:656,[email protected]:1565" && \
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.initia/config/config.toml

Gas Pruning Ayarı

sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.15uinit,0.01uusdc\"|" $HOME/.initia/config/app.toml

Pruning indexer

sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.initia/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.initia/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"50\"/" $HOME/.initia/config/app.toml
sed -i "s/^indexer *=.*/indexer = \"null\"/" $HOME/.initia/config/config.toml

Snap (opsiyonel)

sudo systemctl stop initiad
cp $HOME/.initia/data/priv_validator_state.json $HOME/.initia/priv_validator_state.json.backup
rm -rf $HOME/.initia/data
curl -o - -L http://37.120.189.81/initia_testnet/initia_snap.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.initia
mv $HOME/.initia/priv_validator_state.json.backup $HOME/.initia/data/priv_validator_state.json
sudo systemctl restart initiad && sudo journalctl -fu initiad -o cat

Başlatma Komutu

sudo systemctl daemon-reload
sudo systemctl restart initiad

Log Komutu

sudo journalctl -u initiad.service -f --no-hostname -o cat

Cüzdan Oluşturma

initiad keys add cuzdan-adini-yaz

Cüzdan İmport-Eski cosmos cüzdanlarınız varsa import edebilirsiniz 24 kelime olması gerekiyor

initiad keys add wallet --recover

Validator Oluşturma-Bloklarınız Expolrer ile eşitlendikten sonra ve faucetten token istedikten sonra yapınız aksi durumda hata alırsınız

Faucet: https://faucet.testnet.initia.xyz/ Explorer: https://scan.testnet.initia.xyz/initiation-1

initiad tx mstaking create-validator \
  --amount=5000000uinit \
  --pubkey=$(initiad tendermint show-validator) \
  --moniker=MONIKER-YAZ \
  --chain-id=initiation-1 \
  --commission-rate=0.05 \
  --commission-max-rate=0.10 \
  --commission-max-change-rate=0.01 \
  --from=CUZDAN-ADI-YAZ \
  --identity="" \
  --website="" \
  --details="" \
  --node=http://localhost:15657 \
  --gas-adjustment 1.4 \
  --gas auto \
  --gas-prices 0.15uinit \
  -y

Edit Valdator-Eğer Validator ile ilgili bir değişiklik yapacaksanız uygulayın tekrar uygulamanıza gerek yok

initiad tx mstaking edit-validator \
--moniker "isim-yaz" \
--from cüzdan-adi-yaz \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.15uinit \
-y

Kendine Delege

initiad tx mstaking delegate $(initiad keys show walletadınıyaz --bech val -a)  miktar000000uinit --from wallet --gas-adjustment 1.4 --gas auto --gas-prices 0.15uinit --node=http://localhost:15657 -y

Kendine Delege-Eğer Yukarıdaki Koddan Hata Alırsanız Uygulayın

initiad tx mstaking delegate valaperadresiniyaz 3000000uinit --from walletadınıyaz --gas=2000000 --fees=300000uinit --node https://rpc-initia-testnet.trusted-point.com:443

Unjail Kodu-Eğer herhangi bir sebepten jaile düşerseniz uygulayın aksi durumda hata verir

initiad tx slashing unjail --from wallet --chain-id initiation-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.15uinit --node=http://localhost:15657 -y

Ödülleri Çekme Komutu

initiad tx distribution withdraw-rewards $(initiad keys show wallet --bech val -a) --commission --from wallet --chain-id initiation-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.15uinit --node=http://localhost:15657 -y

Oylama Komutu

initiad tx gov vote OylamaNumarasınıyaz yes --from wallet --chain-id initiation-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.15uinit --node=http://localhost:15657 -y

Oylama Komutu-Eğer Yukarıdaki Koddan Hata Alırsanız Uygulayın

 initiad tx gov vote OylamaNumarasınıyaz yes --from akan34 --chain-id initiation-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.15uinit --node https://rpc-initia-testnet.trusted-point.com:443 -y

takip için linki tıklayabilirsiniz:X-twitter Medium Yutube

kaynak:Core Node Github

initia-node's People

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.