From 3137d8dc13742055e0857b249037fe0430bf9578 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 8 Apr 2023 08:10:56 +0200 Subject: [PATCH] adding FIXME --- src/exchangedb/exchange_do_deposit.sql | 1 + src/exchangedb/pg_do_deposit.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/exchangedb/exchange_do_deposit.sql b/src/exchangedb/exchange_do_deposit.sql index a2f5ba53a..53fcfb1bc 100644 --- a/src/exchangedb/exchange_do_deposit.sql +++ b/src/exchangedb/exchange_do_deposit.sql @@ -123,6 +123,7 @@ THEN -- Deposit exists, but with differences. Not allowed. out_balance_ok=FALSE; out_conflict=TRUE; + -- FIXME: out_exchange_timestamp not set on this path? RETURN; END IF; diff --git a/src/exchangedb/pg_do_deposit.c b/src/exchangedb/pg_do_deposit.c index 771c50af3..f3d0856ac 100644 --- a/src/exchangedb/pg_do_deposit.c +++ b/src/exchangedb/pg_do_deposit.c @@ -25,6 +25,8 @@ #include "pg_do_deposit.h" #include "pg_helper.h" #include "pg_compute_shard.h" + + enum GNUNET_DB_QueryStatus TEH_PG_do_deposit ( void *cls, @@ -69,8 +71,6 @@ TEH_PG_do_deposit ( GNUNET_PQ_result_spec_end }; - /* Used in #postgres_do_deposit() to execute a deposit, - checking the coin's balance in the process as needed. */ PREPARE (pg, "call_deposit", "SELECT "