From 234b0cd56f69305f27ac5f6cd3828c0d115dcd0f Mon Sep 17 00:00:00 2001
From: Özgür Kesim <oec-taler@kesim.org>
Date: Sat, 23 Dec 2023 23:33:22 +0100
Subject: Added appropriate response on contract-conflict during deposit

In case of a detected conflict during deposit, because
(merchant_pub, h_contract_terms) already existed, with different other
field values, we now provide the client an error response that contains
the h_wire.  This way, the client can retrieve further details about the
conflicting transaction via
/deposits/$H_WIRE/$MERCHANT_PUB/$H_CONTRACT_TERMS/$COIN_PUB

Fixes #8002
---
 src/exchangedb/exchange_do_deposit.sql | 1 -
 1 file changed, 1 deletion(-)

(limited to 'src/exchangedb/exchange_do_deposit.sql')

diff --git a/src/exchangedb/exchange_do_deposit.sql b/src/exchangedb/exchange_do_deposit.sql
index 7116117ff..1156c7de5 100644
--- a/src/exchangedb/exchange_do_deposit.sql
+++ b/src/exchangedb/exchange_do_deposit.sql
@@ -142,7 +142,6 @@ THEN
   IF NOT FOUND
   THEN
     -- Deposit exists, but with *strange* differences. Not allowed.
-    -- FIXME #8002:  Surely we need to provide the client more data in this case.
     out_conflict=TRUE;
     RETURN;
   END IF;
-- 
cgit v1.2.3

