π₯οΈLight node (Shwap)
In this guide, we install the Light node on a separate server and use data from Consensus Full Node!
Server preparation
apt update && apt upgrade -yapt 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 -yInstall 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 versionufw allow 2121 comment light_nodeNode installation
IMPORTANT - starting October 7th, a new version v0.18.1-mocha for the Celestia DA layer (Mocha) will be released, which will use Shwap and will not be compatible with previous versions. For the new release, it will be necessary to remove Environment=GODEBUG="asynctimerchan=1" from the service file
The process of setting up and starting a new node remains the same, but the new node will need to synchronize all blocks from the genesis, or use a snapshot synchronized with the new version. Due to optimizations, a significant decrease in hard disk usage is expected
Both protocols will work side by side during a month-long transition period from October 7th to November 7th for Mocha
Initializing the light
--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
Don't forget to save the catalog with keys!!! .celestia-light-mocha-4/keys
Update
Node transfer
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:
Start a new server and fully sync the Light
Stop Light on the new server and replace the two files in
/root/.celestia-light-mocha-4/keys/Be sure to give the necessary rights
chmod 600 /root/.celestia-light-mocha-4/keys/*Restart Light on the new server and wait for full synchronization
Stop the old server
Useful commands
Find out Light node id
Working with wallets
Status
Delete
Last updated