diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-09-17 11:27:33 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-09-17 11:27:33 +0200 |
commit | 9ae46f367e606f9b3866b361459e05a71be9f310 (patch) | |
tree | 8ebc0edf84cc745a75b9c8ff4b550a40a08c9ca8 /src/include/taler_exchangedb_plugin.h | |
parent | 535c57b2f9660e4178b31e2a0c47444b00348b71 (diff) | |
download | exchange-9ae46f367e606f9b3866b361459e05a71be9f310.tar.xz |
first cut for API to get coin history
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index ee382ebe8..8fd9ce19f 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -4696,15 +4696,21 @@ struct TALER_EXCHANGEDB_Plugin /** * Compile a list of all (historic) transactions performed * with the given coin (melt, refund, recoup and deposit operations). + * Should return 0 if @a etag is already current, otherwise + * return the full history and update @a etag. @a etag + * should be set to the last row ID of the given coin + * in the coin history table. * * @param cls the @e cls of this struct with the plugin-specific state * @param coin_pub coin to investigate + * @param[in,out] etag known etag, updated to current etag * @param[out] tlp set to list of transactions, NULL if coin is fresh * @return database transaction status */ enum GNUNET_DB_QueryStatus (*get_coin_transactions)(void *cls, const struct TALER_CoinSpendPublicKeyP *coin_pub, + uint64_t *etag, struct TALER_EXCHANGEDB_TransactionList **tlp); |