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
cd $HOMErm-rfcelestia-nodegitclonehttps://github.com/celestiaorg/celestia-node&&cdcelestia-nodegitcheckouttags/v0.20.2-mochamakebuildmakeinstallcelestiaversion#Semantic version: v0.18.0-refs-tags-v0-20-2-arabica.0#Commit: 2dc9cce7b5dffc14fd4fe156d2aa9869318e0f68
Don't forget to save the catalog with keys!!!.celestia-bridge-mocha-4/keys
Update
systemctlstopcelestia-bridge
cd $HOMErm-rfcelestia-nodegitclonehttps://github.com/celestiaorg/celestia-node&&cdcelestia-nodegitcheckouttags/v0.16.0makebuildmakeinstallmakecel-keycelestiaversion#Semantic version: v0.16.0#Commit: 6744f648649ebb5fee1b27faf7aca96ecf4519b2
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-mocha-4/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:
Start a new server and fully sync the bridge
Stop Bridge on the new server and replace the two files in /root/.celestia-bridge-mocha-4/keys/
Be sure to give the necessary rights chmod 600 /root/.celestia-bridge-mocha-4/keys/*
Restart Bridge on the new server and wait for full synchronization
Stop the old server
Useful commands
Find out bridge node id
# first, let's generate an authorization tokenAUTH_TOKEN=$(celestiabridgeauthadmin--p2p.networkmocha)echo $AUTH_TOKEN# we get the peerId of our nodecurl-XPOST \-H"Authorization: Bearer $AUTH_TOKEN" \-H'Content-Type: application/json' \-d'{"jsonrpc":"2.0","id":0,"method":"p2p.Info","params":[]}' \http://localhost:26658
# another way to get Node IDcelestiap2pinfo--node.store~/.celestia-bridge-mocha-4/
Working with wallets
# show wallet addresscel-keylist--node.typebridge--keyring-backendtest--p2p.networkmocha# check balancecelestiastatebalance--node.store~/.celestia-bridge-mocha-4/# restore walletcel-keyaddbridge_wallet--keyring-backendtest--node.typebridge--recover--p2p.networkmocha