From 322e97cb11e0f05d839b99566106a6c7c9f4877f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 24 Aug 2019 23:06:18 +0200 Subject: shutdown when done --- src/auditor/taler-wire-auditor.c | 8 ++++---- src/auditor/test-auditor.conf | 10 ++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/auditor/taler-wire-auditor.c b/src/auditor/taler-wire-auditor.c index a3e55dc8a..edd2270bf 100644 --- a/src/auditor/taler-wire-auditor.c +++ b/src/auditor/taler-wire-auditor.c @@ -697,6 +697,7 @@ check_for_required_transfers () pp.last_timestamp = next_timestamp; /* conclude with success */ commit (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT); + GNUNET_SCHEDULER_shutdown (); } @@ -1460,10 +1461,6 @@ history_credit_cb (void *cls, "diagnostic", "execution date missmatch")); } cleanup: - GNUNET_assert (GNUNET_OK == - GNUNET_CONTAINER_multihashmap_remove (in_map, - &key, - rii)); GNUNET_assert (GNUNET_OK == free_rii (NULL, &key, @@ -1650,6 +1647,9 @@ process_account_cb (void *cls, GNUNET_SCHEDULER_shutdown (); return; } + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Found exchange account `%s'\n", + ai->section_name); wa = GNUNET_new (struct WireAccount); wa->wire_plugin = wp; wa->section_name = GNUNET_strdup (ai->section_name); diff --git a/src/auditor/test-auditor.conf b/src/auditor/test-auditor.conf index 420b68baf..0f16fbd9a 100644 --- a/src/auditor/test-auditor.conf +++ b/src/auditor/test-auditor.conf @@ -2,6 +2,16 @@ DB = postgres TINY_AMOUNT = TESTKUDOS:0.01 +[account-1] +WIRE_RESPONSE = ${TALER_DATA_HOME}/exchange/account-1.json +url = payto://x-taler-bank/localhost:8082/2 +plugin = taler_bank +enable_debit = yes +enable_credit = yes +TALER_BANK_AUTH_METHOD = basic +USERNAME = Exchange +PASSWORD = x + [auditordb-postgres] CONFIG = postgres:///taler-auditor-test -- cgit v1.2.3