aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_get_reserve_history.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-09-19 13:11:26 +0200
committerChristian Grothoff <christian@grothoff.org>2023-09-19 13:11:26 +0200
commit2f7f82536d53cf015f46782c1a81280849fef935 (patch)
treeb7736dbcaccfda35c52a894c56447b61b31a3084 /src/exchangedb/pg_get_reserve_history.h
parent2afcc8c70202c10b71f98c9e4b9766ae08656459 (diff)
downloadexchange-2f7f82536d53cf015f46782c1a81280849fef935.tar.xz
work on reserve history API
Diffstat (limited to 'src/exchangedb/pg_get_reserve_history.h')
-rw-r--r--src/exchangedb/pg_get_reserve_history.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/exchangedb/pg_get_reserve_history.h b/src/exchangedb/pg_get_reserve_history.h
index ca6740c6c..15765f127 100644
--- a/src/exchangedb/pg_get_reserve_history.h
+++ b/src/exchangedb/pg_get_reserve_history.h
@@ -27,12 +27,18 @@
/**
- * Get all of the transaction history associated with the specified
- * reserve.
+ * Compile a list of (historic) transactions performed with the given reserve
+ * (withdraw, incoming wire, open, close operations). Should return 0 if the @a
+ * reserve_pub is unknown, otherwise determine @a etag_out and if it is past @a
+ * etag_in return the history after @a start_off. @a etag_out should be set
+ * to the last row ID of the given @a reserve_pub in the reserve history table.
*
* @param cls the `struct PostgresClosure` with the plugin-specific state
* @param reserve_pub public key of the reserve
* @param start_off maximum starting offset in history to exclude from returning
+ * @param etag_in up to this offset the client already has a response, do not
+ * return anything unless @a etag_out will be larger
+ * @param[out] etag_out set to the latest history offset known for this @a coin_pub
* @param[out] balance set to the reserve balance
* @param[out] rhp set to known transaction history (NULL if reserve is unknown)
* @return transaction status
@@ -42,6 +48,8 @@ TEH_PG_get_reserve_history (
void *cls,
const struct TALER_ReservePublicKeyP *reserve_pub,
uint64_t start_off,
+ uint64_t etag_in,
+ uint64_t *etag_out,
struct TALER_Amount *balance,
struct TALER_EXCHANGEDB_ReserveHistory **rhp);