Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use cometbft binary #1454

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.1"
TM_PATCH="4"
TM_SUFFIX="-abciplus"
TM_REPO="https://github.com/heliaxdev/tendermint"
TM_MAJORMINOR="0.37"
TM_PATCH="1"
TM_SUFFIX=""
TM_REPO="https://github.com/cometbft/cometbft"

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

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

# check for existence
TM_EXECUTABLE=$(which tendermint)
TM_EXECUTABLE=$(which cometbft)
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 tendermint)"
echo "tendermint is located at = $(which cometbft)"
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}/tendermint_${TM_VERSION}_$(echo "${SYSTEM}" | tr '[:upper:]' '[:lower:]')_${ARCH}.tar.gz"
RELEASE_URL="${TM_REPO}/releases/download/v${TM_VERSION}/cometbft_${TM_VERSION}_$(echo "${SYSTEM}" | tr '[:upper:]' '[:lower:]')_${ARCH}.tar.gz"
echo "$RELEASE_URL"

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

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is on purpose to allow this to be tested on the CI without having to rename everything.