Skip to content

Commit

Permalink
replacing more CounterpartyXCP links, but will figure out these only …
Browse files Browse the repository at this point in the history
…if they are actually used
  • Loading branch information
jotapea committed Dec 8, 2023
1 parent 0ccbb21 commit fa9e496
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ before_install:
fi
- echo $DOCKER_TAG
# try to check out the same branch for counterparty-lib (if it exists), and fallback to the develop branch if not
- if curl --output /dev/null --silent --head --fail "https://github.com/CounterpartyXCP/counterparty-cli/tree/$BRANCH"; then export DOCKERFILE_CLI_BRANCH="$BRANCH"; else export DOCKERFILE_CLI_BRANCH="develop"; fi
# github.com/CNTRPRTY/counterparty-cli is being removed anyway... figure out later if this is used
- if curl --output /dev/null --silent --head --fail "https://github.com/CNTRPRTY/counterparty-cli/tree/$BRANCH"; then export DOCKERFILE_CLI_BRANCH="$BRANCH"; else export DOCKERFILE_CLI_BRANCH="develop"; fi
# - if curl --output /dev/null --silent --head --fail "https://github.com/CounterpartyXCP/counterparty-cli/tree/$BRANCH"; then export DOCKERFILE_CLI_BRANCH="$BRANCH"; else export DOCKERFILE_CLI_BRANCH="develop"; fi
- echo $DOCKERFILE_CLI_BRANCH
# build docker image
- docker build -t counterparty/counterparty-server:$DOCKER_TAG --build-arg CLI_BRANCH="$DOCKERFILE_CLI_BRANCH" .
Expand Down
4 changes: 3 additions & 1 deletion counterpartylib/lib/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ def software_version():
logger.debug('Checking version.')

try:
host = 'https://counterpartyxcp.github.io/counterparty-lib/counterpartylib/protocol_changes.json'
# if used do equivalent cntrprty github page
host = 'https://cntrprty.github.io/counterparty-lib/counterpartylib/protocol_changes.json'
# host = 'https://counterpartyxcp.github.io/counterparty-lib/counterpartylib/protocol_changes.json'
response = requests.get(host, headers={'cache-control': 'no-cache'})
versions = json.loads(response.text)
except (requests.exceptions.ConnectionError, ConnectionRefusedError, ValueError) as e:
Expand Down

0 comments on commit fa9e496

Please sign in to comment.