StakeTown
  • Introduction
  • 🔗IBC relayers
  • Tools
    • Discord Governance Bot
    • IBC Monitoring
  • Mainnet
    • Archway
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Aura
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • C4E
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Celestia
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Elys
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Gitopia
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Juno
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Kyve
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Lava
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Osmosis
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Persistence
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Picasso
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Planq
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Quasar
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Quicksilver
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Source
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Umee
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
  • Testnet
    • Arkeo Network
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Babylon
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • C4E
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Celestia
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Elys
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Juno
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Lava
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Ojo
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Native
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Persistence
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Prysm
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Quicksilver
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Side Protocol
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Umee
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
    • Warden Protocol
      • Installation
      • Updates
      • Sync
      • Public API
      • Cheat Sheet
Powered by GitBook
On this page
  • Installation
  • Install Bridge Node
  1. Testnet
  2. Celestia

Installation

Installation

Install with one line script

bash <(curl -s https://raw.githubusercontent.com/staketown/cosmos/master/celestia/test_install.sh)

Manual installation

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

bash <(curl -s "https://raw.githubusercontent.com/staketown/cosmos/master/utils/go_install.sh")
source .bash_profile

cd $HOME || return
rm -rf $HOME/celestia-app
git clone https://github.com/celestiaorg/celestia-app.git
cd $HOME/celestia-app || return
git checkout v3.8.1-mocha

make install

celestia-appd config keyring-backend os
celestia-appd config chain-id mocha-4
celestia-appd init "Your Moniker" --chain-id mocha-4

# Download genesis and addrbook
curl -Ls https://snapshots-testnet.stake-town.com/celestia/genesis.json > $HOME/.celestia-app/config/genesis.json
curl -Ls https://snapshots-testnet.stake-town.com/celestia/addrbook.json > $HOME/.celestia-app/config/addrbook.json

APP_TOML="~/.celestia-app/config/app.toml"
sed -i 's|^pruning *=.*|pruning = "nothing"|g' $APP_TOML
sed -i -e "s|^target_height_duration *=.*|timeout_commit = \"11s\"|" $HOME/.celestia-app/config/config.toml

CONFIG_TOML="~/.celestia-app/config/config.toml"
SEEDS=""
PEERS="94035b3187ebfeeadffdae4dc69292ad06b581a2@65.109.92.217:34656"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $CONFIG_TOML
sed -i.bak -e "s/^seeds =.*/seeds = \"$SEEDS\"/" $CONFIG_TOML
external_address=$(wget -qO- eth0.me)
sed -i.bak -e "s/^external_address *=.*/external_address = \"$external_address:26656\"/" $CONFIG_TOML
sed -i 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.002utia"|g' $CONFIG_TOML
sed -i 's|^prometheus *=.*|prometheus = true|' $CONFIG_TOML
sed -i -e "s/^filter_peers *=.*/filter_peers = \"true\"/" $CONFIG_TOML

# Install cosmovisor
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.4.0
mkdir -p ~/.celestia-app/cosmovisor/genesis/bin
mkdir -p ~/.celestia-app/cosmovisor/upgrades
cp ~/go/bin/celestia-appd ~/.celestia-app/cosmovisor/genesis/bin

sudo tee /etc/systemd/system/celestia-appd.service > /dev/null << EOF
[Unit]
Description=Celestia Node
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=3
LimitNOFILE=10000
Environment="DAEMON_NAME=celestia-appd"
Environment="DAEMON_HOME=$HOME/.celestia-app"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="UNSAFE_SKIP_BACKUP=true"
[Install]
WantedBy=multi-user.target
EOF

# Snapshots
celestia-appd tendermint unsafe-reset-all --home $HOME/.celestia-app --keep-addr-book

URL=https://snapshots-testnet.stake-town.com/celestia/mocha-4_latest.tar.lz4
curl -L $URL | lz4 -dc - | tar -xf - -C $HOME/.celestia-app
[[ -f $HOME/.celestia-app/data/upgrade-info.json ]] && cp $HOME/.celestia-app/data/upgrade-info.json $HOME/.celestia-app/cosmovisor/genesis/upgrade-info.json

(Optional) Configure timeouts for processing blocks

CONFIG_TOML="~/.celestia-app/config/config.toml"
sed -i 's/timeout_propose =.*/timeout_propose = "100ms"/g' $CONFIG_TOML
sed -i 's/timeout_propose_delta =.*/timeout_propose_delta = "500ms"/g' $CONFIG_TOML
sed -i 's/timeout_prevote =.*/timeout_prevote = "100ms"/g' $CONFIG_TOML
sed -i 's/timeout_prevote_delta =.*/timeout_prevote_delta = "500ms"/g' $CONFIG_TOML
sed -i 's/timeout_precommit =.*/timeout_precommit = "100ms"/g' $CONFIG_TOML
sed -i 's/timeout_precommit_delta =.*/timeout_precommit_delta = "500ms"/g' $CONFIG_TOML
sed -i 's/timeout_commit =.*/timeout_commit = "1s"/g' $CONFIG_TOML
sed -i 's/skip_timeout_commit =.*/skip_timeout_commit = false/g' $CONFIG_TOML

Enable and start service

sudo systemctl daemon-reload
sudo systemctl enable celestia-appd
sudo systemctl start celestia-appd

sudo journalctl -u celestia-appd -f -o cat

After successful synchronisation we recommend to turn off snapshot_interval and state sync, this will save space on your hardware.

snapshot_interval=0
sed -i.bak -e "s/^snapshot-interval *=.*/snapshot-interval = \"$snapshot_interval\"/" ~/.celestia-app/config/app.toml
sed -i 's|^enable *=.*|enable = false|' $HOME/.celestia-app/config/config.toml
sudo systemctl restart celestia-appd && sudo journalctl -u celestia-appd -f -o cat

Wallet creation

Create wallet

⚠️ store seed phrase, important during recovering

celestia-appd keys add <YOUR_WALLET_NAME>

Recover wallet

⚠️ store seed phrase, important during recovering

celestia-appd keys add <YOUR_WALLET_NAME> --recover

Validator creation

After successful synchronisation we can proceed with validation creation.

Create validator

celestia-appd tx staking create-validator \
--amount=1000000utia \
--pubkey=$(celestia-appd tendermint show-validator) \
--moniker="<Your moniker>" \
--identity=<Your identity> \
--details="<Your details>" \
--chain-id=mocha-4 \
--commission-rate=0.05 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.1 \
--min-self-delegation=1 \
--from=<YOUR_WALLET> \
--gas-prices=0.002utia \
--gas-adjustment=1.4 \
--gas=auto \
-y

Install Bridge Node

Download and build binaries

cd $HOME
rm -rf celestia-node
git clone https://github.com/celestiaorg/celestia-node.git
cd celestia-node
git checkout v0.22.2-mocha
make build
sudo mv build/celestia $HOME/go/bin
make cel-key
sudo mv cel-key $HOME/go/bin

Add new bridge wallet

cel-key add bridge-wallet --node.type bridge --p2p.network mocha

Recover existent bridge wallet (in case you already have bridge wallet)

cel-key add bridge-wallet --node.type bridge --p2p.network mocha --recover

⚠️ Once you start the Bridge Node, a wallet key will be generated. You need to fund that address with testnet tokens (could be used faucet) to pay for PayForBlob transactions

Initialize Bridge node

celestia bridge init \
--keyring.keyname bridge-wallet \
--core.ip http://localhost \
--core.port 9090 \
--p2p.network mocha \
--rpc.port 26658 \
--gateway.port 26659

Create service

sudo tee /etc/systemd/system/celestia-bridge.service > /dev/null << EOF
[Unit]
Description=Celestia Bridge Node service
After=network-online.target

[Service]
User=$USER
ExecStart=$(which celestia) bridge start \\
--keyring.keyname bridge-wallet \\
--core.ip http://localhost \\
--core.port 9090 \\
--p2p.network mocha \\
--rpc.port 26658 \\
--gateway.port 26659 \\
--metrics.tls=true \\
--metrics \\
--metrics.endpoint otel.mocha.celestia.observer \\
--archival
Restart=on-failure
RestartSec=10
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

Load bridge node service file

sudo systemctl daemon-reload
sudo systemctl enable celestia-bridge.service

Start Bridge node

systemctl restart celestia-bridge.service

Check bridge node logs

journalctl -fu celestia-bridge.service -o cat
PreviousCelestiaNextUpdates

Last updated 8 days ago

Page cover image