diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-03-05 17:14:32 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-03-05 17:14:32 +0100 |
commit | a080f118904525034777686e294f9ad5f703c71c (patch) | |
tree | 02ef0f76c86f46e1afaa6d64fa411b5c1c349e9e /src/include/taler_exchangedb_plugin.h | |
parent | 57470e4c0891e2a98fd33fec0ed9b49da4997c2a (diff) |
add more logic for new global fees
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 683d4f574..7440a8aae 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -4129,6 +4129,33 @@ struct TALER_EXCHANGEDB_Plugin /** + * Lookup information about known global fees. + * + * @param cls closure + * @param start_time starting time of fee + * @param end_time end time of fee + * @param[out] fees set to wire fees for that time period; if + * different global fee exists within this time + * period, an 'invalid' amount is returned. + * @param[out] purse_timeout set to when unmerged purses expire + * @param[out] kyc_timeout set to when reserves without kyc expire + * @param[out] history_expiration set to when we expire reserve histories + * @param[out] purse_account_limit set to number of free purses + * @return transaction status code + */ + enum GNUNET_DB_QueryStatus + (*lookup_global_fee_by_time)( + void *cls, + struct GNUNET_TIME_Timestamp start_time, + struct GNUNET_TIME_Timestamp end_time, + struct TALER_GlobalFeeSet *fees, + struct GNUNET_TIME_Relative *purse_timeout, + struct GNUNET_TIME_Relative *kyc_timeout, + struct GNUNET_TIME_Relative *history_expiration, + uint32_t *purse_account_limit); + + + /** * Lookup the latest serial number of @a table. Used in * exchange-auditor database replication. * |