Skip to content

Latest commit

 

History

History
133 lines (86 loc) · 2.84 KB

README.md

File metadata and controls

133 lines (86 loc) · 2.84 KB

Celestia-Install-Node

Update system and install build tools

sudo apt update

sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y

Install Go

rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.21.1.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version

Install Node

cd $HOME 

rm -rf celestia-app 

git clone https://github.com/celestiaorg/celestia-app.git

cd celestia-app/ 

git checkout v1.3.0

make install

celestia-appd version

Initialize Node

Replace NodeName with your own moniker.

celestia-appd init NodeName --chain-id=celestia

Download Genesis

curl -Ls https://ss.celestia.nodestake.top/genesis.json > $HOME/.celestia-app/config/genesis.json 

Download addrbook

curl -Ls https://ss.celestia.nodestake.top/addrbook.json > $HOME/.celestia-app/config/addrbook.json

Create Service

sudo tee /etc/systemd/system/celestia-appd.service > /dev/null <<EOF
[Unit]
Description=celestia-appd Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which celestia-appd) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable celestia-appd

Download Snapshot(optional)

SNAP_NAME=$(curl -s https://ss.celestia.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")

curl -o - -L https://ss.celestia.nodestake.top/${SNAP_NAME}  | lz4 -c -d - | tar -x -C $HOME/.celestia-app

Launch Node

sudo systemctl restart celestia-appd
journalctl -u celestia-appd -f

Add New Key

celestia-appd keys add wallet

Recover Existing Key

celestia-appd keys add wallet --recover

Query Wallet Balance

celestia-appd q bank balances $(celestia-appd keys show wallet -a)

Create New Validator

celestia-appd tx staking create-validator \
--amount=1000000utia \
--pubkey=$(celestia-appd tendermint show-validator) \
--moniker="Moniker" \
--chain-id=celestia \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--from=wallet \
--gas-prices=0.1utia \
--gas-adjustment=1.5 \
--gas=auto \
-y 

Service Management

Check Service Logs

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

Stop Service

sudo systemctl stop celestia-appd

Restart Service

sudo systemctl restart celestia-appd

Check Service Status

sudo systemctl status celestia-appd

Get Sync Status

celestia-appd status 2>&1 | jq .SyncInfo.catching_up