Code Monkey home page Code Monkey logo

initia-node's Introduction

initia-Node

Bileşenler Minimum Gereksinimler
Ubuntu 20.04.2
CPU 4
RAM 6 GB
Storage 250 GB SSD

Sunucumuzu Güncelliyoruz.

sudo apt update
sudo apt install curl git jq build-essential gcc unzip wget lz4 -y

GO'yu Kuruyoruz.

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" && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && \
source $HOME/.bash_profile && \
go version

Repoyu Klonluyoruz.

git clone https://github.com/initia-labs/initia

Klasöre giriyoruz.

cd initia
git checkout v0.2.12
make install

Version v0.2.11 olmalı.

initiad version

Şu kısımları duzenleyin. Nodeismi, Gözükmesini istediğiniz isim. Cüzdan yazan yere, Cüzdan isminizi yazın.

echo 'export MONIKER="Nodeismi"' >> ~/.bash_profile
echo 'export CHAIN_ID="initiation-1"' >> ~/.bash_profile
echo 'export WALLET_NAME="Cüzdan"' >> ~/.bash_profile
source $HOME/.bash_profile
cd

Genesis Dosyasını Yüklüyoruz.

wget https://initia.s3.ap-southeast-1.amazonaws.com/initiation-1/genesis.json -O $HOME/.initia/config/genesis.json

Peer Ekliyoruz.

PEERS="[email protected]:26313,[email protected]:26656,[email protected]:26656,[email protected]:53456,[email protected]:26656,[email protected]:36656,[email protected]:19656,[email protected]:26656,[email protected]:53456,[email protected]:25756,[email protected]:53456,[email protected]:26656,[email protected]:26656,[email protected]:26656" && \
SEEDS="[email protected]:26656,c28827cb96c14c905b127b92065a3fb4cd77d7f6@testnet-seeds.whispernode.com:25756" && \
sed -i \
    -e "s/^seeds *=.*/seeds = \"$SEEDS\"/" \
    -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" \
    "$HOME/.initia/config/config.toml"

Minimum Gas Priceyi Ayarlıyoruz.

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

Service Dosyamızı Oluşturuyoruz.

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

[Service]
User=$USER
ExecStart=$(which initiad) start
Restart=on-failure
RestartSec=10
LimitNOFILE=10000

[Install]
WantedBy=multi-user.target
EOF

Restart Atıyoruz.

sudo systemctl daemon-reload
sudo systemctl enable initiad 
sudo systemctl restart initiad
sudo systemctl start initiad

Screen Açıyoruz.

screen -S init

Log görüntülemek için.

sudo journalctl -u initiad -f -o cat

Snapshotta varmışşş :D restart atıp log komutunu girin.

initiad tendermint unsafe-reset-all --home $HOME/.initia
curl -o - -L http://37.120.189.81/initia_testnet/initia_snap.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.initia

Validator Kuracağız

Not: Eşitlenene Kadar bekliyoruz. Kontrol Etmek için initia Scanı kullanabilirsiniz. https://scan.initia.tech/initiation-1

Cüzdan Oluşturuyoruz.

Kodu Yazdıktan Sonra şifre soracak 2 kere aynı şifreyi girin ve 24 Kelimenizi Kaydedin.

initiad keys add $WALLET_NAME

Daha Sonra Cüzdanınıza Faucet alın Faucet Linki: https://faucet.testnet.initia.xyz/

Validator Oluşturma Komutu,

initiad tx checkpointing create-validator \
--amount=1000000000000uinit \
--pubkey=$(initiad tendermint show-validator) \
--moniker="Nodeisminiz" \
--chain-id=initiation-1 \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.1" \
--min-self-delegation="1" \
--fees=500000uinit \
--gas=200000 \
--from=Cüzdanismi \
--website="websiteBilginiz" \
--details="Detayları Yazın " \
--identity="Keybaseİdiniz" \
-y

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.