merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit c252aa91ad616bdd9a353740427a56eb5cdc7b64
parent 2daf5c4566cd2b175e4f22646041eeaf4e8c81c5
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  3 Jul 2022 14:00:11 +0200

a few more checks for #6774, but still unable to reproduce

Diffstat:
Msrc/backend/taler-merchant-httpd_post-tips-ID-pickup.c | 3+++
Msrc/backenddb/plugin_merchantdb_postgres.c | 2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/backend/taler-merchant-httpd_post-tips-ID-pickup.c b/src/backend/taler-merchant-httpd_post-tips-ID-pickup.c @@ -290,6 +290,7 @@ withdraw_cb (void *cls, GNUNET_CONTAINER_DLL_remove (pc->po_head, pc->po_tail, po); + TMH_db->preflight (TMH_db->cls); if (NULL == blind_sig) { GNUNET_free (po); @@ -361,6 +362,7 @@ do_withdraw (void *cls, struct PickupContext *pc = po->pc; po->fo = NULL; + TMH_db->preflight (TMH_db->cls); if (NULL == hr) { stop_operations (pc); @@ -421,6 +423,7 @@ try_withdraw (struct PickupContext *pc, { struct PlanchetOperation *po; + TMH_db->preflight (TMH_db->cls); po = GNUNET_new (struct PlanchetOperation); po->pc = pc; po->pd = *planchet; diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c @@ -229,7 +229,7 @@ postgres_preflight (void *cls) struct PostgresClosure *pg = cls; if (NULL == pg->transaction_name) - return; /* all good */ + return true; /* all good */ GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "BUG: Preflight check detected running transaction `%s'!\n", pg->transaction_name);