aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_exchangedb_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r--src/include/taler_exchangedb_plugin.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index 0766c091..10e1a815 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -223,6 +223,7 @@ enum TALER_EXCHANGEDB_ReplicatedTable
TALER_EXCHANGEDB_RT_EXTENSIONS,
TALER_EXCHANGEDB_RT_POLICY_DETAILS,
TALER_EXCHANGEDB_RT_POLICY_FULFILMENTS,
+ TALER_EXCHANGEDB_RT_POLICY_DETAILS_FULFILMENTS,
TALER_EXCHANGEDB_RT_PURSE_REQUESTS,
TALER_EXCHANGEDB_RT_PURSE_REFUNDS,
TALER_EXCHANGEDB_RT_PURSE_MERGES,
@@ -530,11 +531,17 @@ struct TALER_EXCHANGEDB_TableData
char *policy_options;
struct GNUNET_HashCode serial_id;
struct GNUNET_TIME_Timestamp deadline;
- uint64_t fulfilment_serial_id;
+ uint64_t fulfilment_state;
} policy_details;
struct
{
+ struct GNUNET_HashCode serial_id;
+ uint64_t fulfilment_id;
+ } policy_details_fulfilments;
+
+ struct
+ {
char *fulfilment_proof;
struct GNUNET_TIME_Timestamp fulfilment_timestamp;
} policy_fulfilments;
@@ -1442,23 +1449,25 @@ struct TALER_EXCHANGEDB_Deposit
* deposit operation, possibly NULL!
*/
json_t *policy_details;
- bool no_policy_details;
+ bool has_policy_details;
/**
- * If policy_details are present, the corresponding policy extension calculates
- * a serial id under which the policy_details shall be stored in the policy_details table.
+ * If policy_details are present, the corresponding policy extension
+ * calculates a serial id under which the policy_details shall be stored in
+ * the policy_details table.
*/
struct GNUNET_HashCode policy_serial_id;
/**
- * If policy_details are present, the corresponding policy extension can
- * set a deadline for this policy. Can be "forever".
+ * If policy_details are present, the corresponding policy extension can set
+ * a deadline for this policy. Can be "forever".
*/
struct GNUNET_TIME_Timestamp policy_deadline;
/**
- * Hash over the @e policy_details. Only filled if no_policy_details is false.
+ * Hash over the @e policy_details. Only filled if has_policy_details is
+ * true.
*/
struct TALER_ExtensionPolicyHashP h_policy;