Skip to content

Commit

Permalink
Revert "Merge branch 'adrian/upgrade_cometbft' (#1454)"
Browse files Browse the repository at this point in the history
This reverts commit 52bbe56, reversing
changes made to 2770df4.
  • Loading branch information
brentstone committed Jun 1, 2023
1 parent 791e3d7 commit 8f2998a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scripts/get_tendermint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ set -Eo pipefail
# an examplary download-url
# https://github.com/tendermint/tendermint/releases/download/v0.34.13/tendermint_0.34.13_linux_amd64.tar.gz
# https://github.com/heliaxdev/tendermint/releases/download/v0.1.1-abcipp/tendermint_0.1.0-abcipp_darwin_amd64.tar.gz
TM_MAJORMINOR="0.37"
TM_PATCH="1"
TM_SUFFIX=""
TM_REPO="https://github.com/cometbft/cometbft"
TM_MAJORMINOR="0.1"
TM_PATCH="4"
TM_SUFFIX="-abciplus"
TM_REPO="https://github.com/heliaxdev/tendermint"

TM_VERSION="${TM_MAJORMINOR}.${TM_PATCH}${TM_SUFFIX}"

Expand All @@ -22,14 +22,14 @@ error_exit()
}

# check for existence
TM_EXECUTABLE=$(which cometbft)
TM_EXECUTABLE=$(which tendermint)
if [ -x "$TM_EXECUTABLE" ]; then
TM_EXISTS_VER=$(${TM_EXECUTABLE} version)
fi

if [[ $TM_EXISTS_VER == "${TM_MAJORMINOR}" ]]; then
echo "tendermint already exists in your current PATH with a sufficient version = $TM_EXISTS_VER"
echo "tendermint is located at = $(which cometbft)"
echo "tendermint is located at = $(which tendermint)"
exit
fi

Expand All @@ -40,10 +40,10 @@ if [[ $MACHINE = "aarch64" ]] || [[ $MACHINE = "arm64" ]]; then
ARCH="arm64"
fi

RELEASE_URL="${TM_REPO}/releases/download/v${TM_VERSION}/cometbft_${TM_VERSION}_$(echo "${SYSTEM}" | tr '[:upper:]' '[:lower:]')_${ARCH}.tar.gz"
RELEASE_URL="${TM_REPO}/releases/download/v${TM_VERSION}/tendermint_${TM_VERSION}_$(echo "${SYSTEM}" | tr '[:upper:]' '[:lower:]')_${ARCH}.tar.gz"
echo "$RELEASE_URL"

curl -LsSfo "$TMP_PATH"/cometbft.tar.gz "$RELEASE_URL" || error_exit "tendermint release download failed"
curl -LsSfo "$TMP_PATH"/tendermint.tar.gz "$RELEASE_URL" || error_exit "tendermint release download failed"

cd $TARGET_PATH
sudo tar -xvzf $TMP_PATH/cometbft.tar.gz tendermint || error_exit "tendermint release extraction failed"
sudo tar -xvzf $TMP_PATH/tendermint.tar.gz tendermint || error_exit "tendermint release extraction failed"

0 comments on commit 8f2998a

Please sign in to comment.