Chain ID: mocha-4 | Latest Version Tag: v0.20.2-mocha
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
cd $HOME
ver="1.23.1" && \
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 && \
go version
Just copy and paste it on your server
source <(curl -s https://raw.githubusercontent.com/ERNcrypto/celestia/main/installbridgetest.sh)
git clone https://github.com/celestiaorg/celestia-node && cd celestia-node
git checkout tags/v0.20.2-mocha
make build
make install
make cel-key
Set configuration and init node
mv $HOME/celestia-node/cel-key /usr/local/bin/
cel-key add bridge_wallet --keyring-backend test --node.type bridge --p2p.network mocha
cel-key list --node.type bridge --keyring-backend test --p2p.network mocha
celestia bridge init \
--p2p.network mocha \
--core.ip http://localhost \
--core.rpc.port 26657 \
--core.grpc.port 9090 \
--gateway \
--gateway.addr 0.0.0.0 \
--gateway.port 26659 \
--rpc.addr 0.0.0.0 \
--rpc.port 26658 \
--keyring.keyname bridge_wallet
sudo tee <<EOF >/dev/null /etc/systemd/system/celestia-bridge.service
[Unit]
Description=celestia-bridge Cosmos daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which celestia) bridge start \
--p2p.network mocha --archival \
--gateway \
--gateway.addr 0.0.0.0 \
--gateway.port 26659 \
--metrics.tls=true \
--metrics \
--metrics.endpoint otel.celestia-mocha.com
--keyring.keyname bridge_wallet
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Start service and check the logs
systemctl daemon-reload
systemctl enable celestia-bridge
systemctl restart celestia-bridge && journalctl -u celestia-bridge -f -o cat