-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: block sync on mocha on main (#3846)
Closes #3840 Forward port of #3843 ## Testing I can state sync and block sync on Arabica and Mocha ```shell ./scripts/arabica.sh ./scripts/arabica-block-sync.sh ./scripts/mocha.sh ./scripts/mocha-block-sync.sh ```
- Loading branch information
Showing
8 changed files
with
177 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/sh | ||
|
||
# This script starts a consensus node on Arabica and block syncs from genesis to | ||
# the tip of the chain. | ||
|
||
# Stop script execution if an error is encountered | ||
set -o errexit | ||
# Stop script execution if an undefined variable is used | ||
set -o nounset | ||
|
||
CHAIN_ID="arabica-11" | ||
NODE_NAME="node-name" | ||
SEEDS="827583022cc6ce65cf762115642258f937c954cd@validator-1.celestia-arabica-11.com:26656,74e42b39f512f844492ff09e30af23d54579b7bc@validator-2.celestia-arabica-11.com:26656,00d577159b2eb1f524ef9c37cb389c020a2c38d2@validator-3.celestia-arabica-11.com:26656,b2871b6dc2e18916d07264af0e87c456c2bba04f@validator-4.celestia-arabica-11.com:26656" | ||
|
||
CELESTIA_APP_HOME="${HOME}/.celestia-app" | ||
CELESTIA_APP_VERSION=$(celestia-appd version 2>&1) | ||
|
||
echo "celestia-app home: ${CELESTIA_APP_HOME}" | ||
echo "celestia-app version: ${CELESTIA_APP_VERSION}" | ||
echo "" | ||
|
||
# Ask the user for confirmation before deleting the existing celestia-app home | ||
# directory. | ||
read -p "Are you sure you want to delete: $CELESTIA_APP_HOME? [y/n] " response | ||
|
||
# Check the user's response | ||
if [ "$response" != "y" ]; then | ||
# Exit if the user did not respond with "y" | ||
echo "You must delete $CELESTIA_APP_HOME to continue." | ||
exit 1 | ||
fi | ||
|
||
echo "Deleting $CELESTIA_APP_HOME..." | ||
rm -r "$CELESTIA_APP_HOME" | ||
|
||
echo "Initializing config files..." | ||
celestia-appd init ${NODE_NAME} --chain-id ${CHAIN_ID} > /dev/null 2>&1 # Hide output to reduce terminal noise | ||
|
||
echo "Settings seeds in config.toml..." | ||
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/" $CELESTIA_APP_HOME/config/config.toml | ||
|
||
echo "Downloading genesis file..." | ||
celestia-appd download-genesis ${CHAIN_ID} | ||
|
||
echo "Starting celestia-appd..." | ||
celestia-appd start --v2-upgrade-height 1751707 --force-no-bbr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/sh | ||
|
||
# This script starts a consensus node on Mocha and block syncs from genesis to | ||
# the tip of the chain. This is expected to take a few weeks. | ||
|
||
# Stop script execution if an error is encountered | ||
set -o errexit | ||
# Stop script execution if an undefined variable is used | ||
set -o nounset | ||
|
||
CHAIN_ID="mocha-4" | ||
NODE_NAME="node-name" | ||
SEEDS="[email protected]:26656,258f523c96efde50d5fe0a9faeea8a3e83be22ca@seed.mocha-4.celestia.aviaone.com:20279,5d0bf034d6e6a8b5ee31a2f42f753f1107b3a00e@celestia-testnet-seed.itrocket.net:11656,7da0fb48d6ef0823bc9770c0c8068dd7c89ed4ee@celest-test-seed.theamsolutions.info:443" | ||
|
||
CELESTIA_APP_HOME="${HOME}/.celestia-app" | ||
CELESTIA_APP_VERSION=$(celestia-appd version 2>&1) | ||
|
||
echo "celestia-app home: ${CELESTIA_APP_HOME}" | ||
echo "celestia-app version: ${CELESTIA_APP_VERSION}" | ||
echo "" | ||
|
||
# Ask the user for confirmation before deleting the existing celestia-app home | ||
# directory. | ||
read -p "Are you sure you want to delete: $CELESTIA_APP_HOME? [y/n] " response | ||
|
||
# Check the user's response | ||
if [ "$response" != "y" ]; then | ||
# Exit if the user did not respond with "y" | ||
echo "You must delete $CELESTIA_APP_HOME to continue." | ||
exit 1 | ||
fi | ||
|
||
echo "Deleting $CELESTIA_APP_HOME..." | ||
rm -r "$CELESTIA_APP_HOME" | ||
|
||
echo "Initializing config files..." | ||
celestia-appd init ${NODE_NAME} --chain-id ${CHAIN_ID} > /dev/null 2>&1 # Hide output to reduce terminal noise | ||
|
||
echo "Settings seeds in config.toml..." | ||
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/" $CELESTIA_APP_HOME/config/config.toml | ||
|
||
echo "Downloading genesis file..." | ||
celestia-appd download-genesis ${CHAIN_ID} > /dev/null 2>&1 # Hide output to reduce terminal noise | ||
|
||
echo "Starting celestia-appd..." | ||
celestia-appd start --v2-upgrade-height 2585031 --force-no-bbr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters