-
Celestia Mocha test ağı uzun süredir aktif bir şekilde çalışıyor ve geliştirmeler sürekli devam ettiği için belirsiz bir süre zarfında çalışmaya devam edecek.
-
Bu kılavuz içerisinde adım adım ilerleyerek test ağında Validator, Bridge, Full Storage ve Light Node çalıştırabilir, ağa katkıda bulunabilirsiniz.
-
Kurulumn sırasında veya sonrasında bir şey sormak isterseniz bana Telegram, Mail ve Discord yoluyla ulaşabirsiniz. Ayrıca Github üzerinden de katkı sağlayabilirsiniz.
- Memory: 8 GB RAM
- CPU: 6 Cores
- Disk: 500 GB SSD Storage
- Bandwidth: 1 Gbps for Download/100 Mbps for Upload
sudo apt update && sudo apt upgrade -y
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential git ncdu -y
sudo apt install make -y
ver="1.23.1"
cd $HOME
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
cd $HOME
rm -rf celestia-app
git clone https://github.com/celestiaorg/celestia-app.git
cd celestia-app/
APP_VERSION=v3.0.0-mocha
git checkout tags/$APP_VERSION -b $APP_VERSION
make install
celestia version
celestia-appd init "Node Name" --chain-id mocha-4
wget -O $HOME/.celestia-app/config/genesis.json https://mainnet-files.itrocket.net/celestia/genesis.json
wget -O $HOME/.celestia-app/config/addrbook.json https://mainnet-files.itrocket.net/celestia/addrbook.json
SEEDS="5d0bf034d6e6a8b5ee31a2f42f753f1107b3a00e@celestia-testnet-seed.itrocket.net:11656"
PEERS="daf2cecee2bd7f1b3bf94839f993f807c6b15fbf@celestia-testnet-peer.itrocket.net:11656,[email protected]:26656,[email protected]:27656,[email protected]:11656,[email protected]:12056,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:33656,[email protected]:16007,[email protected]:11656,[email protected]:2400,[email protected]:28656,[email protected]:26656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.celestia-app/config/config.toml
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.celestia-app/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.celestia-app/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"50\"/" $HOME/.celestia-app/config/app.toml
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0.002utia"|g' $HOME/.celestia-app/config/app.toml
- Aşağıdaki kodu girdiğinizde ekranda size şifre koymanızı ister ve bundan sonra cüzdan adresinizi, cüzdanın gizli kelimelerini gösteriri. Bunları mutlaka kaydedin, herhangi bir geri getirme durumunda bu kelimeler gerekli.
celestia-appd keys add cuzdanadı
- https://discord.gg/nWqg8BGAUd discord kanalına giderek Faucet kanalından yukarıdaki kodu girdiğinizde size verdiği cüzdana test tokenı almak zorundasınız.
sudo tee /etc/systemd/system/celestia-appd.service > /dev/null <<EOF
[Unit]
Description=Celestia node
After=network-online.target
[Service]
User=root
ExecStart=$(which celestia-appd) start --home $HOME/.celestia-app
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable celestia-appd
sudo systemctl restart celestia-appd && sudo journalctl -u celestia-appd -f
- Kodu girdiğinizde sonuç olarak false verdiğinde sisteme eşitlenmiş demektir.
celestia-appd status 2>&1 | jq
- Sisteme eşitlendikten sonra aşağıdaki kod ile validator oluşturabilirsiniz. 1 adet test tokenına göre ayarlanmıştır.
celestia-appd tx staking create-validator \
--amount 1000000utia \
--from cuzdanismi \
--moniker "Monikerismi" \
--chain-id mocha \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(celestia-appd tendermint show-validator) \
--gas 500000 \
--fees 3000utia \
--identity "" \
--website "" \
--details "" \
-y
NOT: Ağda olan bütün durumları ve tx sonuçarı için Explorer için siteyi ziyaret edebilirsiniz.
- Memory: 16 GB RAM (Minimum)
- CPU: 6 Cores
- Disk: 10 TB SSD Storage
- Bandwidth: 1 Gbps for Download/100 Mbps for Upload
sudo apt update && sudo apt upgrade -y
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential git ncdu -y
sudo apt install make -y
ver="1.23.1"
cd $HOME
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
cd $HOME
rm -rf celestia-node
git clone https://github.com/celestiaorg/celestia-node.git
cd celestia-node/
git checkout tags/v0.20.2-mocha
make build
make install
make cel-key
- Versiyon Kontrol
celestia version
>>> 0.20.2
celestia bridge init --core.ip rpc-mocha.pops.one:26657 --p2p.network mocha-4
./cel-key list --node.type bridge --p2p.network mocha --keyring-backend test
- Discord kanalına giderek cüzdan adresinize test token almalısınız >>> https://discord.gg/wpuN2xx7yQ
sudo tee /etc/systemd/system/celestia-bridge.service > /dev/null <<EOF
[Unit]
Description=celestia-bridge Cosmos daemon
After=network-online.target
[Service]
User=root
ExecStart=/usr/local/bin/celestia bridge start --core.ip rpc-mocha.pops.one:26657 --core.rpc.port 26657 --core.grpc.port 9090 --keyring.backend test --keyring.keyname my_celes_key --metrics.tls=true --metrics --metrics.endpoint otel.celestia-mocha.com --p2p.network mocha
Restart=on-failure
RestartSec=3
LimitNOFILE=100000
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable celestia-bridge
sudo systemctl start celestia-bridge && sudo journalctl -u celestia-bridge -f
AUTH_TOKEN=$(celestia bridge auth admin --p2p.network mocha)
curl -X POST \
-H "Authorization: Bearer $AUTH_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":0,"method":"p2p.Info","params":[]}' \
http://localhost:26658
sudo systemctl stop celestia-bridge
sudo systemctl disable celestia-bridge
rm -rf $HOME/celestia-node
rm -rf $HOME/.celestia-bridge-mocha-4
rm -rf $HOME/.celestia-app
- Memory: 16 GB RAM (Minimum)
- CPU: Quad-Core Cores
- Disk: 10 TB SSD Storage
- Bandwidth: 1 Gbps for Download/100 Mbps for Upload
sudo apt update && sudo apt upgrade -y
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential git ncdu -y
sudo apt install make -y
ver="1.23.1"
cd $HOME
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
cd $HOME
rm -rf celestia-node
git clone https://github.com/celestiaorg/celestia-node.git
cd celestia-node/
git checkout tags/v0.20.2-mocha
make build
make install
make cel-key
celestia full init --core.ip rpc-mocha.pops.one:26657 --p2p.network mocha
./cel-key list --p2p.network mocha --node.type full --keyring-backend test
sudo tee /etc/systemd/system/celestia-full.service > /dev/null <<EOF
[Unit]
Description=celestia-bridge Cosmos daemon
After=network-online.target
[Service]
User=root
ExecStart=/usr/local/bin/celestia full start --core.ip rpc-mocha.pops.one:26657 --core.rpc.port 26657 --core.grpc.port 9090 --keyring.backend test --keyring.keyname my_celes_key --metrics.tls=true --metrics --metrics.endpoint otel.celestia-mocha.com --p2p.network mocha
Restart=on-failure
RestartSec=3
LimitNOFILE=100000
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable celestia-full
sudo systemctl start celestia-full && sudo journalctl -u celestia-full -f
AUTH_TOKEN=$(celestia full auth admin --p2p.network mocha)
curl -X POST \
-H "Authorization: Bearer $AUTH_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":0,"method":"p2p.Info","params":[]}' \
http://localhost:26658
sudo systemctl stop celestia-full
sudo systemctl disable celestia-full
rm -rf $HOME/celestia-node
rm -rf $HOME/.celestia-full-mocha-4
rm -rf $HOME/.celestia-app
- Memory: 500 MB RAM (Minimum)
- CPU: Single Core
- Disk: 100 GB SSD Storage
- Bandwidth: 56 Kbps
sudo apt update && sudo apt upgrade -y
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential git ncdu -y
sudo apt install make -y
ver="1.23.1"
cd $HOME
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
cd $HOME
rm -rf celestia-node
git clone https://github.com/celestiaorg/celestia-node.git
cd celestia-node/
git checkout tags/v0.20.2-mocha
make build
make install
make cel-key
./cel-key list --node.type light --p2p.network mocha --keyring-backend test
celestia light init --core.ip rpc-mocha.pops.one:26657 --p2p.network mocha
sudo tee /etc/systemd/system/celestia-light.service > /dev/null <<EOF
[Unit]
Description=celestia-bridge Cosmos daemon
After=network-online.target
[Service]
User=root
ExecStart=/usr/local/bin/celestia light start --core.ip rpc-mocha.pops.one:26657 --core.rpc.port 26657 --core.grpc.port 9090 --keyring.backend test --keyring.keyname my_celes_key --keyring.keyname my_celes_key --metrics.tls=true --metrics --metrics.endpoint otel.celestia-mocha.com --p2p.network mocha
Restart=on-failure
RestartSec=3
LimitNOFILE=100000
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable celestia-full
sudo systemctl start celestia-full && sudo journalctl -u celestia-full -f
AUTH_TOKEN=$(celestia light auth admin --p2p.network mocha)
curl -X POST \
-H "Authorization: Bearer $AUTH_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":0,"method":"p2p.Info","params":[]}' \
http://localhost:26658
sudo systemctl stop celestia-light
sudo systemctl disable celestia-light
rm -rf $HOME/celestia-node
rm -rf $HOME/.celestia-light-mocha
rm -rf $HOME/.celestia-app
- Aşağıdaki kodları girerek basit bir şekilde aktifleştirebilirsiniz.
cd celestia-app
make enable-bbr
- Eğer yukarıdaki kodlarda hata alırsanız aşağıdaki kodla aktif hale getirebilirsiniz.
sudo modprobe tcp_bbr; \
echo "net.core.default_qdisc=fq" | sudo tee -a /etc/sysctl.conf; \
echo "net.ipv4.tcp_congestion_control=bbr" | sudo tee -a /etc/sysctl.conf; \
sudo sysctl -p; \