πŸ–₯️Bridge node (Shwap)

In this guide, we install the Bridge node on a separate server and use data from Consensus Full Node!

Server preparation

apt update && apt upgrade -y
apt install curl build-essential git wget jq make gcc tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev lz4 -y

Install GO

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
ufw allow 2121 comment bridge_node

Node installation

cd $HOME
rm -rf celestia-node
git clone https://github.com/celestiaorg/celestia-node && cd celestia-node
git checkout tags/v0.21.9
make build
make install

celestia version
#Semantic version: v0.21.9
#Commit: 3d8fb74bc073fb23303dcfc2804ab85ce316fa24

Initializing the bridge

--core.ip use the address of our remote RPC node

--p2p.network use the chain id of our network

--core.port use the gRPC port from our RPC node

--keyring.keyname use the name of the wallet we created

Create a service file

Update

Node transfer

For Bridge nodes there is no concept of double signature and if suddenly there is a need to transfer node ID to a new server, then it does not matter to us whether the old server is working or not available. The main thing is that we have a copy of two files located at /root/.celestia-bridge/keys/

Please note that we do not necessarily need to change the keyring-test wallet Let's look at the most suitable option for saving the Node ID, assuming that the old server is working:

  1. Start a new server and fully sync the bridge

  2. Stop Bridge on the new server and replace the two files in /root/.celestia-bridge/keys/

  3. Be sure to give the necessary rights chmod 600 /root/.celestia-bridge/keys/*

  4. Restart Bridge on the new server and wait for full synchronization

  5. Stop the old server

Useful commands

Find out bridge node id

Working with wallets

Status

Delete bridge

Last updated