diff --git a/scripts/setup/install_layer.sh b/scripts/setup/install_layer.sh index 6e35cac2c..c77de65ad 100755 --- a/scripts/setup/install_layer.sh +++ b/scripts/setup/install_layer.sh @@ -214,7 +214,7 @@ fi # init variables for mainnet and palmito LAYERD_TAG_MAINNET="v6.1.3" -LAYERD_TAG_PALMITO="v6.1.3" +LAYERD_TAG_PALMITO="v6.1.5" MAINNET_LAYER_NODE_URL=https://mainnet.tellorlayer.com/rpc/ PALMITO_LAYER_NODE_URL=https://node-palmito.tellorlayer.com/rpc/ MAINNET_RPC_NODE_ID=cbb94e01df344fdfdee1fdf2f9bb481712e7ef8d @@ -241,7 +241,7 @@ elif [ "$NETWORK" == "palmito" ]; then KEYRING_BACKEND=$PALMITO_KEYRING_BACKEND PEERS=$PALMITO_PEERS LAYER_HOME=$PALMITO_LAYER_HOME - CHAIN_ID="layertest-4" + CHAIN_ID="layertest-5" fi # set cosmovisor environment variables for init command (dynamic based on network) diff --git a/scripts/setup/resync-prune-node.sh b/scripts/setup/resync-prune-node.sh index 04196f17d..8f4ca6e55 100755 --- a/scripts/setup/resync-prune-node.sh +++ b/scripts/setup/resync-prune-node.sh @@ -3,7 +3,7 @@ # Check if script is run with sudo (it should be run with sudo.) if [ "$EUID" -ne 0 ]; then echo "Error: This script should be run with sudo." - echo "Please run as sudo: sudo $0 --network " + echo "Please run as sudo: sudo $0 --network " exit 1 fi @@ -37,7 +37,7 @@ while [[ $# -gt 0 ]]; do shift 2 ;; --help|-h) - echo "Usage: sudo $0 --network [--snapshot ] [--discord-webhook ]" + echo "Usage: sudo $0 --network [--snapshot ] [--discord-webhook ]" echo "" echo "Options:" echo " --network, -n Required. Network to use: mainnet or palmito" @@ -48,7 +48,7 @@ while [[ $# -gt 0 ]]; do ;; *) echo "Unknown option: $1" - echo "Usage: sudo $0 --network [--snapshot ] [--discord-webhook ]" + echo "Usage: sudo $0 --network [--snapshot ] [--discord-webhook ]" exit 1 ;; esac @@ -57,14 +57,14 @@ done # Validate NETWORK flag is provided if [ -z "$NETWORK" ]; then echo "Error: --network flag is required." - echo "Usage: sudo $0 --network [--snapshot ] [--discord-webhook ]" + echo "Usage: sudo $0 --network [--snapshot ] [--discord-webhook ]" exit 1 fi # Validate NETWORK value -if [ "$NETWORK" != "tellor-1" ] && [ "$NETWORK" != "layertest-4" ]; then - echo "Error: Invalid network '$NETWORK'. Must be 'tellor-1' or 'layertest-4'." - echo "Usage: sudo $0 --network [--snapshot ] [--discord-webhook ]" +if [ "$NETWORK" != "tellor-1" ] && [ "$NETWORK" != "layertest-5" ]; then + echo "Error: Invalid network '$NETWORK'. Must be 'tellor-1' or 'layertest-5'." + echo "Usage: sudo $0 --network [--snapshot ] [--discord-webhook ]" exit 1 fi @@ -117,7 +117,7 @@ EOF # Define version tags LAYERD_TAG_MAINNET="v6.1.3" -LAYERD_TAG_PALMITO="v6.1.3" +LAYERD_TAG_PALMITO="v6.1.5" # Set network-specific variables if [ "$NETWORK" == "tellor-1" ]; then @@ -126,12 +126,12 @@ if [ "$NETWORK" == "tellor-1" ]; then LAYER_HOME="$USER_HOME/.layer" LAYER_SNAPSHOT_HOME="$USER_HOME/.layer_snapshot" CHAIN_ID="tellor-1" -elif [ "$NETWORK" == "layertest-4" ]; then +elif [ "$NETWORK" == "layertest-5" ]; then LAYERD_TAG="$LAYERD_TAG_PALMITO" PEERS="" LAYER_HOME="$USER_HOME/.layer" LAYER_SNAPSHOT_HOME="$USER_HOME/.layer_snapshot" - CHAIN_ID="layertest-4" + CHAIN_ID="layertest-5" fi # check if layer home directory exists. If it does, ask if they want to remove it before continuing.