Giter Club home page Giter Club logo

empowerchain's Introduction

Empower Chain

image

Discord kanal linki

Sistem gereksinimleri klasik cosmos:

4 CPU
8 RAM
200 SSD

Güncellemeler:

sudo apt update && sudo apt upgrade -y && \
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y

Go kurulumu:

cd $HOME && version="1.18.3" && \
wget "https://golang.org/dl/go$version.linux-amd64.tar.gz" && \
sudo rm -rf /usr/local/go && \
sudo tar -C /usr/local -xzf "go$version.linux-amd64.tar.gz" && \
rm "go$version.linux-amd64.tar.gz" && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && \
source $HOME/.bash_profile && \
go version

Binary:

cd $HOME && git clone https://github.com/empowerchain/empowerchain && \
cd empowerchain/chain && \
make install && \
empowerd version --long | head

Moniker kısmını validator isminizi yazın.

empowerd init <MONIKER> --chain-id altruistic-1 && \
empowerd config chain-id altruistic-1

Cüzdan oluşturun:

empowerd keys add <WALLET_NAME>

Genesis oluşturuyoruz:

  • <WALLET_NAME> kısmını düzenleyin.
empowerd add-genesis-account <WALLET_NAME> 1000000umpwr

Gentx oluşturuyoruz:

  • <WALLET_NAME> kısmını düzenleyin.
empowerd gentx <WALLET_NAME> 1000000umpwr \
--chain-id=altruistic-1 \
--moniker="<MONIKER>" \
--commission-max-change-rate 0.1 \
--commission-max-rate 0.2 \
--commission-rate 0.05 \
--pubkey $(empowerd tendermint show-validator) \
--website="" \
--security-contact="" \
--identity="" \
--details=""

Gentx dosyanız oluştu:

  • Winscp ile içersine girip: /root/.empowerchain/config/gentx/ kısmından gentx'i masa üstünüze atın.
  • Gentx isminizi şu şekilde düzenleyin, örnek: gentx-RuesValidator.json
  • Burayı forklayın, not: bizim Buray'ı değil :)
  • Kendi forkunuzun reposunda testnet klasörüne giriniz ve add file diyin:

image

  • Dosya ismini oluşturun ve gentx dosyasını içine atın ve kaydetin:

image

  • Sonra aynı repodan sol üstten pull request (PR) yapın.
  • PR'ın içine atmanız gerek şu, masa üstüne attığınız dosyaya sağ tık yapıp not defteri ile açın, not defretrinden kopyalayıp PC'ın içine yapıştırın:

image

image

Genesisi indiriyoruz:

rm -rf $HOME/.empowerchain/config/genesis.json && cd $HOME/.empowerchain/config && wget https://raw.githubusercontent.com/empowerchain/empowerchain/main/testnets/altruistic-1/genesis.json
empowerd tendermint unsafe-reset-all --home $HOME/.empowerchain

Kontrol:

sha256sum $HOME/.empowerchain/config/genesis.json
  • Örnek çıktı: Result: fcae4a283488be14181fdc55f46705d9e11a32f8e3e8e25da5374914915d5ca8

Servis dosyası oluşturuyoruz:

sudo tee /etc/systemd/system/empowerd.service > /dev/null <<EOF
[Unit]
Description=EmpowerChain Node
After=network.target
[Service]
User=$USER
Type=simple
ExecStart=$(which empowerd) start
Restart=on-failure
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF

Peerleri ekliyoruz:

seeds=""
peers="[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656"
sed -i -e 's|^seeds *=.*|seeds = "'$seeds'"|; s|^persistent_peers *=.*|persistent_peers = "'$peers'"|' $HOME/.empowerchain/config/config.toml

Servisi başlatıyoruz:

sudo systemctl daemon-reload && \
sudo systemctl enable empowerd && \
sudo systemctl restart empowerd && \
sudo journalctl -u empowerd -f -o cat

VALİDATOR OLUŞTURMA

  • Şu an faucet açılmadı 1-2 gün içersinde açılacak, o zaman duyuracağım:
  • Faucet açılıp token aldığınızda validatör oluşturun:

Validator:

empowerd tx staking create-validator \
--amount=9900000umpwr \
--pubkey=$(empowerd tendermint show-validator) \
--moniker=RuesValidator \
--chain-id=altruistic-1 \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.1" \
--min-self-delegation="1" \
--fees=250umpwr \
--gas=200000 \
--from=rues \
--website="http://forum.rues.info/" \
--details="https://linktr.ee/ruesandora0" \
-y

empowerchain's People

Contributors

ruesandora 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.