aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_exchangedb_plugin.h
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/include/taler_exchangedb_plugin.h
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/include/taler_exchangedb_plugin.h')
-rw-r--r--src/include/taler_exchangedb_plugin.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index 10e1a815..80a19b67 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -531,7 +531,8 @@ struct TALER_EXCHANGEDB_TableData
char *policy_options;
struct GNUNET_HashCode serial_id;
struct GNUNET_TIME_Timestamp deadline;
- uint64_t fulfilment_state;
+ uint16_t timeout_fulfilment_state;
+ uint16_t fulfilment_state;
} policy_details;
struct
@@ -1464,6 +1465,11 @@ struct TALER_EXCHANGEDB_Deposit
*/
struct GNUNET_TIME_Timestamp policy_deadline;
+ /**
+ * The state that a _pending_ policy should be put into once the timeout triggers
+ */
+ uint16_t policy_state_on_timeout;
+
/**
* Hash over the @e policy_details. Only filled if has_policy_details is