summaryrefslogtreecommitdiff
path: root/src/exchangedb/exchange_do_deposit.sql
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-12-23 23:33:22 +0100
committerÖzgür Kesim <oec-taler@kesim.org>2023-12-23 23:33:22 +0100
commit234b0cd56f69305f27ac5f6cd3828c0d115dcd0f (patch)
tree10d8f0872098d308cbaf2f0b6abb69936a104fb8 /src/exchangedb/exchange_do_deposit.sql
parent13bb37b6a811451accc14b3501173637f2c28d10 (diff)
downloadexchange-234b0cd56f69305f27ac5f6cd3828c0d115dcd0f.tar.gz
exchange-234b0cd56f69305f27ac5f6cd3828c0d115dcd0f.tar.bz2
exchange-234b0cd56f69305f27ac5f6cd3828c0d115dcd0f.zip
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
Diffstat (limited to 'src/exchangedb/exchange_do_deposit.sql')
-rw-r--r--src/exchangedb/exchange_do_deposit.sql1
1 files changed, 0 insertions, 1 deletions
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;