Skip to content

Commit

Permalink
change(tools): Show zcash-cli version at the start of zcash-rpc-diff (#…
Browse files Browse the repository at this point in the history
…7510)

* Show zcash-cli version at the start of the script

* Show shell version and binary

* Move the versions to the top, above any possible RPC failures
  • Loading branch information
teor2345 authored and arya2 committed Sep 29, 2023
1 parent 0105e7c commit 30012d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion zebra-utils/zcash-rpc-diff
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ fi
ZEBRAD_RPC_PORT=$1
shift

echo "Using '$($ZCASH_CLI -version | head -1)' via command '$ZCASH_CLI'."
echo "Using bash shell '$BASH_VERSION' launched from '$SHELL'."

echo

# Use an easily identified temp directory name,
# but fall back to the default temp name if `mktemp` does not understand `--suffix`.
ZCASH_RPC_TMP_DIR=$(mktemp --suffix=.rpc-diff -d 2>/dev/null || mktemp -d)
Expand All @@ -58,7 +63,7 @@ ZCASHD_VERSION=$(cat "$ZCASHD_RELEASE_INFO" | grep '"build"' | cut -d: -f2 | cut
tr 'A-Z' 'a-z')
ZCASHD="$ZCASHD_NAME $ZCASHD_VERSION"

echo "Connected to $ZEBRAD (port $ZEBRAD_RPC_PORT) and $ZCASHD ($ZCASH_CLI zcash.conf port)."
echo "Connected to $ZEBRAD (port $ZEBRAD_RPC_PORT) and $ZCASHD (zcash.conf port)."

echo

Expand Down

0 comments on commit 30012d5

Please sign in to comment.