From 30012d50d9097ecc1a56b4899ce60296a11bae19 Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 8 Sep 2023 08:13:52 +1000 Subject: [PATCH] change(tools): Show zcash-cli version at the start of zcash-rpc-diff (#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 --- zebra-utils/zcash-rpc-diff | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zebra-utils/zcash-rpc-diff b/zebra-utils/zcash-rpc-diff index 069bdcc84bc..1a21ecc10c9 100755 --- a/zebra-utils/zcash-rpc-diff +++ b/zebra-utils/zcash-rpc-diff @@ -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) @@ -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