aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/lrbt_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/lrbt_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/lrbt_callbacks.c')
-rw-r--r--src/exchangedb/lrbt_callbacks.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/exchangedb/lrbt_callbacks.c b/src/exchangedb/lrbt_callbacks.c
index a2c654f4..5fe0817e 100644
--- a/src/exchangedb/lrbt_callbacks.c
+++ b/src/exchangedb/lrbt_callbacks.c
@@ -1456,7 +1456,10 @@ lrbt_cb_table_policy_details (void *cls,
GNUNET_PQ_result_spec_timestamp ("deadline",
&td.details.policy_details.
deadline),
- GNUNET_PQ_result_spec_uint64 ("fulfilment_state",
+ GNUNET_PQ_result_spec_uint16 ("timeout_fulfilment_state",
+ &td.details.policy_details.
+ timeout_fulfilment_state),
+ GNUNET_PQ_result_spec_uint16 ("fulfilment_state",
&td.details.policy_details.
fulfilment_state),
GNUNET_PQ_result_spec_end
@@ -1503,15 +1506,15 @@ lrbt_cb_table_policy_fulfilments (void *cls,
GNUNET_PQ_result_spec_uint64 ("fulfilment_id",
&td.serial),
GNUNET_PQ_result_spec_allow_null (
- GNUNET_PQ_result_spec_string ("fulfilment_proof",
- &td.details.policy_fulfilments.
- fulfilment_proof),
- &no_config),
- GNUNET_PQ_result_spec_allow_null (
GNUNET_PQ_result_spec_timestamp ("fulfilment_timestamp",
&td.details.policy_fulfilments.
fulfilment_timestamp),
&no_timestamp),
+ GNUNET_PQ_result_spec_allow_null (
+ GNUNET_PQ_result_spec_string ("fulfilment_proof",
+ &td.details.policy_fulfilments.
+ fulfilment_proof),
+ &no_config),
GNUNET_PQ_result_spec_end
};