aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/irbt_callbacks.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2022-10-09 22:11:09 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2022-10-09 22:11:09 +0200
commit956e3c3065ddb762dbe01fd720cc5ef403232564 (patch)
treec96fca3c50cfb7b45cd4538a3c004a78ca888a9a /src/exchangedb/irbt_callbacks.c
parent18d8dcd1f94ff5e5c314e14fc90c6faca7549ff9 (diff)
WIP: policy handling advancements
- introduction of policy states. - introduction of default state on timeout. - introduction of TALER_PolicyFulfilmentOutcome - parsing for policy_details now also provides default state on timeout. - introduction of check_serial as preflight func before heavy operations in policy post handler - brandt auction now returns outcomes.
Diffstat (limited to 'src/exchangedb/irbt_callbacks.c')
-rw-r--r--src/exchangedb/irbt_callbacks.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/exchangedb/irbt_callbacks.c b/src/exchangedb/irbt_callbacks.c
index 7c494418..e9cce43c 100644
--- a/src/exchangedb/irbt_callbacks.c
+++ b/src/exchangedb/irbt_callbacks.c
@@ -929,11 +929,16 @@ irbt_cb_table_policy_details (struct PostgresClosure *pg,
{
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_uint64 (&td->serial),
- NULL ==
- td->details.policy_details.policy_options ?
+ NULL == td->details.policy_details.policy_options ?
GNUNET_PQ_query_param_null () :
GNUNET_PQ_query_param_string (
td->details.policy_details.policy_options),
+ GNUNET_PQ_query_param_timestamp (
+ &td->details.policy_details.deadline),
+ GNUNET_PQ_query_param_uint16 (
+ &td->details.policy_details.timeout_fulfilment_state),
+ GNUNET_PQ_query_param_uint16 (
+ &td->details.policy_details.fulfilment_state),
GNUNET_PQ_query_param_end
};