diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2024-01-14 00:44:57 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2024-01-14 00:44:57 +0100 |
commit | 7538ee9ab776460ad1509b875ca283fef2d65397 (patch) | |
tree | 487f86f524ecaff19c769166410c344e05b5beed | |
parent | c51675e17d691fda680682f041240057256aa9b3 (diff) | |
parent | 99847d50a7f6187e0327d825ec21df620bed952e (diff) | |
download | exchange-7538ee9ab776460ad1509b875ca283fef2d65397.tar.xz |
Merge branch 'master' of git+ssh://git.taler.net/exchange
-rwxr-xr-x | src/auditor/test-auditor.sh | 8 | ||||
-rwxr-xr-x | src/testing/taler-unified-setup.sh | 2 | ||||
-rw-r--r-- | src/util/wallet_signatures.c | 10 |
3 files changed, 15 insertions, 5 deletions
diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh index 9912a02af..65e77b04d 100755 --- a/src/auditor/test-auditor.sh +++ b/src/auditor/test-auditor.sh @@ -59,7 +59,7 @@ LIBEUFIN_SETTLE_TIME=1 # Cleanup exchange and libeufin between runs. function cleanup() { - if test ! -z "${EPID:-}" + if [ ! -z "${EPID:-}" ] then echo -n "Stopping exchange $EPID..." kill -TERM "$EPID" @@ -74,7 +74,7 @@ function cleanup() function exit_cleanup() { echo "Running exit-cleanup" - if test ! -z "${POSTGRES_PATH:-}" + if [ ! -z "${POSTGRES_PATH:-}" ] then echo "Stopping Postgres at ${POSTGRES_PATH}" "${POSTGRES_PATH}/pg_ctl" \ @@ -136,7 +136,7 @@ function pre_audit () { exit_skip "Failed to launch Nexus" fi echo " DONE" - if test "${1:-no}" = "aggregator" + if [ "${1:-no}" = "aggregator" ] then echo -n "Running exchange aggregator ..." taler-exchange-aggregator \ @@ -313,7 +313,7 @@ function post_audit () { # Pass "drain" as $2 to run a drain operation as well. function run_audit () { pre_audit "${1:-no}" - if test "${2:-no}" = "drain" + if [ "${2:-no}" = "drain" ] then echo -n "Starting exchange..." taler-exchange-httpd \ diff --git a/src/testing/taler-unified-setup.sh b/src/testing/taler-unified-setup.sh index ca58d9835..581ba9fb6 100755 --- a/src/testing/taler-unified-setup.sh +++ b/src/testing/taler-unified-setup.sh @@ -259,7 +259,7 @@ register_bank_account() { IS_EXCHANGE="false" fi MAYBE_IBAN="${4:-}" - if test -n "$MAYBE_IBAN"; + if [ -n "$MAYBE_IBAN" ] then # shellcheck disable=SC2001 ENAME=$(echo "$3" | sed -e "s/ /+/g") diff --git a/src/util/wallet_signatures.c b/src/util/wallet_signatures.c index 0b6ab5432..ebdb7eab9 100644 --- a/src/util/wallet_signatures.c +++ b/src/util/wallet_signatures.c @@ -201,6 +201,16 @@ TALER_wallet_deposit_verify ( amount); TALER_amount_hton (&dr.deposit_fee, deposit_fee); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Validating deposit with hash %s, wallet timestamp %llu and refund deadline %llu by %s\n", + GNUNET_h2s (&h_contract_terms->hash), + (unsigned long long) wallet_timestamp.abs_time.abs_value_us, + (unsigned long long) refund_deadline.abs_time.abs_value_us, + TALER_B2S (merchant_pub)); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Denomination is %s, wire target is %s\n", + GNUNET_h2s (&h_denom_pub->hash), + TALER_B2S (h_wire)); if (GNUNET_OK != GNUNET_CRYPTO_eddsa_verify (TALER_SIGNATURE_WALLET_COIN_DEPOSIT, &dr, |