[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 03/03: mark out #7999
From: |
gnunet |
Subject: |
[taler-exchange] 03/03: mark out #7999 |
Date: |
Sat, 09 Dec 2023 13:57:47 +0100 |
This is an automated email from the git hooks/post-receive script.
oec pushed a commit to branch master
in repository exchange.
commit 25f93cf043632f520954aa2adcc8afa38a5c92f2
Author: Özgür Kesim <oec-taler@kesim.org>
AuthorDate: Sat Dec 9 13:57:40 2023 +0100
mark out #7999
---
src/exchangedb/exchange_do_insert_or_update_policy_details.sql | 6 +++---
src/include/taler_extensions_policy.h | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/exchangedb/exchange_do_insert_or_update_policy_details.sql
b/src/exchangedb/exchange_do_insert_or_update_policy_details.sql
index 53cd2989..85e52d3d 100644
--- a/src/exchangedb/exchange_do_insert_or_update_policy_details.sql
+++ b/src/exchangedb/exchange_do_insert_or_update_policy_details.sql
@@ -93,14 +93,14 @@ BEGIN
-- Set the fulfillment_state according to the values.
-- For now, we only update the state when it was INSUFFICIENT.
- -- FIXME: What to do in case of Failure or other state?
- IF (out_fullfillment_state = 1) -- INSUFFICIENT
+ -- FIXME[oec] #7999: What to do in case of Failure or other state?
+ IF (out_fullfillment_state = 2) -- INSUFFICIENT
THEN
IF (out_accumulated_total.val >= cur_commitment.val OR
(out_accumulated_total.val = cur_commitment.val AND
out_accumulated_total.frac >=
cur_commitment.frac))
THEN
- out_fulfillment_state = 2; -- READY
+ out_fulfillment_state = 3; -- READY
END IF;
END IF;
diff --git a/src/include/taler_extensions_policy.h
b/src/include/taler_extensions_policy.h
index 7750f58f..b10c0d8a 100644
--- a/src/include/taler_extensions_policy.h
+++ b/src/include/taler_extensions_policy.h
@@ -28,6 +28,8 @@
/*
* @brief Describes the states of fulfillment of a policy bound to a deposit
+ * NOTE: These values must be in sync with their use in stored procedures, f.e.
+ * exchange_do_insert_or_update_policy_details.
*/
enum TALER_PolicyFulfillmentState
{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.