shutdown when done

This commit is contained in:
Christian Grothoff 2019-08-24 23:06:18 +02:00
parent cbcfc56e5a
commit 322e97cb11
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 14 additions and 4 deletions

View File

@ -697,6 +697,7 @@ check_for_required_transfers ()
pp.last_timestamp = next_timestamp; pp.last_timestamp = next_timestamp;
/* conclude with success */ /* conclude with success */
commit (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT); commit (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT);
GNUNET_SCHEDULER_shutdown ();
} }
@ -1460,10 +1461,6 @@ history_credit_cb (void *cls,
"diagnostic", "execution date missmatch")); "diagnostic", "execution date missmatch"));
} }
cleanup: cleanup:
GNUNET_assert (GNUNET_OK ==
GNUNET_CONTAINER_multihashmap_remove (in_map,
&key,
rii));
GNUNET_assert (GNUNET_OK == GNUNET_assert (GNUNET_OK ==
free_rii (NULL, free_rii (NULL,
&key, &key,
@ -1650,6 +1647,9 @@ process_account_cb (void *cls,
GNUNET_SCHEDULER_shutdown (); GNUNET_SCHEDULER_shutdown ();
return; return;
} }
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Found exchange account `%s'\n",
ai->section_name);
wa = GNUNET_new (struct WireAccount); wa = GNUNET_new (struct WireAccount);
wa->wire_plugin = wp; wa->wire_plugin = wp;
wa->section_name = GNUNET_strdup (ai->section_name); wa->section_name = GNUNET_strdup (ai->section_name);

View File

@ -2,6 +2,16 @@
DB = postgres DB = postgres
TINY_AMOUNT = TESTKUDOS:0.01 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] [auditordb-postgres]
CONFIG = postgres:///taler-auditor-test CONFIG = postgres:///taler-auditor-test