merchant

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

commit 48064a2b4fa6d033b7dcc7170f50cafbe3d4d2f3
parent 5cbd6cbd3f2f00eaab4d0e070e46c43f502db63e
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Tue, 13 Jun 2017 10:33:45 +0200

fix check of db returned status (INSERT returns 1)

Diffstat:
Msrc/backenddb/plugin_merchantdb_postgres.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c @@ -1993,7 +1993,8 @@ process_deposits_cb (void *cls, /*Always commit the smallest as refund*/ - if (0 != insert_refund (ctx->pg, + /*Empirically, INSERT returns 1 result*/ + if (1 != insert_refund (ctx->pg, ctx->h_contract_terms, &coin_pub, ctx->reason,