posthuman - nodes
Celestia
Celestia websiteCelestia githubCelestia twitterCelestia discord

Celestia

type:
testnet
chain id:
mocha-4
rpc:
https://rpc.celestia-testnet.posthuman.digital
rest:
https://rest.celestia-testnet.posthuman.digital
grpc:
https://grpc.celestia-testnet.posthuman.digital
peer:
f57805e824e984467f8b1f2560a5ef4c80077ed5@207.121.49.100:11656
  • installation guide
  • state sync

Update system and install build tools

Ensure your system is up to date and has all the necessary tools for the installation:

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

Install Go

Replace VERSION with the desired Go version

VERSION="1.22.3" cd $HOME 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" # Set Go environment variables echo "export PATH=\$PATH:/usr/local/go/bin:\$HOME/go/bin" >> ~/.bash_profile source ~/.bash_profile

Install node

cd $HOME mkdir src cd src git clone https://github.com/celestiaorg/celestia-app cd celestia-app git checkout v2.3.0-mocha make install celestia-appd version

Initialize Node

Replace <node_name>

~/go/bin/.celestia-appd init <node_name> --chain-id="mocha-4"

Download genesis.json

curl -Ls <genesis_url> > $HOME/.celestia-appd/config/genesis.json

Download addrbook.json

curl -Ls <addrbookUrl> > $HOME/.celestia-appd/config/addrbook.json

Create Service

Cosmovisor:

If you haven't cosmovisor, you should install it

go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest

You can find cosmovisor biniry in ~/go/bin/ folder. After that you should create

mkdir -p ~/.celestia-app/cosmovisor/genesis/bin && mkdir -p ~/.celestia-app/cosmovisor/upgrades

Set up service:

sudo nano /etc/systemd/system/celestia-appd.service

Replace <your_user>

[Unit] Description=celestia-appd Daemon cosmovisor After=network-online.target [Service] User=<your_user> ExecStart=/home/<your_user>/go/bin/cosmovisor run start Restart=always RestartSec=3 LimitNOFILE=4096 Environment="DAEMON_NAME=celestia-appd" Environment="DAEMON_HOME=/home/<your_user>/.celestia-appd" Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false" Environment="DAEMON_RESTART_AFTER_UPGRADE=true" Environment="DAEMON_LOG_BUFFER_SIZE=512" [Install] WantedBy=multi-user.target

Simple service file:

Set up service:

sudo nano /etc/systemd/system/celestia-appd.service

Replace <your_user>

[Unit] Description=celestia-appd Daemon After=network-online.target [Service] User=<your_user> ExecStart=/home/<your_user>/go/bin/celestia-appd start Restart=always RestartSec=3 LimitNOFILE=65535 [Install] WantedBy=multi-user.target

Sync node:

After that you sould sync node. You have 2 ways. State-sync or download snapsot. See this guides in next tabs.

Start service

sudo systemctl enable celestia-appd.service && sudo systemctl start celestia-appd.service && journalctl -u celestia-appd.service -f
POSTHUMAN © Copyright 2024. All Rights Reserved.